Questions tagged [google-maps]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Adding External Gmap JS to WordPress

I had some working javascript code that I wanted to move out of the template file and put into a .js file. I moved the code into a front.js file, where some pre-existing javascript lives. Now I'm ...
0
votes
0answers
17 views

Integrate leaflet / Openstreetmap autocomplete functionality to an existing search form on a wordpress template

I am trying to add the autocomplete functionality similar to what you have here https://community.algolia.com/places/examples.html#advanced to the search form in my website. Unfortunately there are no ...
0
votes
0answers
26 views

Send data from function to template (show Google maps)

I'm trying to get the location of X through an API and show it to the user in a Google Maps. Im my template file I have a button (id is the $teamid): <div class="marshal-button"> <a ...
-1
votes
1answer
55 views

Elfsight Google Maps Plugin Version 2.1.0 : Location image input not found [closed]

I'm using Elfsight Google Maps Plugin Version 2.1.0 in my WordPress website to create an interactive map. 1- I can’t find the image field in the description section like in the demo to upload an ...
0
votes
0answers
21 views

CPT search NOT finding results from posts title

I have a search bar to search for CPT (properties) on a page and show results below it including on a map. The search works if searching by address but Its not working if I search by the post's name/...
0
votes
1answer
39 views

Insert Google Maps HTML in Wordpress

I want to insert a Google Map into Wordpress without paying for a plugin. I just want to adjust the style, add a few markers and add a description to the makers. Therefore I simple used the example ...
0
votes
0answers
25 views

Adding content between Header and Footer

I'm trying to add a google maps "Places Search" functionality between the header and footer of my WordPress website. I'm using a theme that provides a custom header and footer. The google maps ...
0
votes
1answer
57 views

Filtering markers on google map by WordPress category[SOLVED]

I have created the Google map with posts as markers but no I want to filter those markers by category and I’m stuck. Here is my code: functions.php $args = array('post_type' => 'post',array( ...
0
votes
1answer
40 views

Post title and url not showing on google map marker [closed]

I have managed to show multiple markers but I can't show the post title and to make the same post title as URL to go to a single page. Here is the code in functions.php $args = array('post_type'...
0
votes
1answer
1k views

Google Maps API problem - initMap()

I do custom wordpress temple site with google maps script, and php code. I have problem with loading of it, they do not always work, sometimes i must refreshing site ten times until it starts to work. ...
1
vote
1answer
408 views

Integrating PHP into Javascript to display map markers with Google API - problem with wp_localize

I would display Google maps markers on custom site temple with Google API maps. I do everything like this post: Integrating PHP into Javascript to display map markers with Google API But a console ...
0
votes
1answer
281 views

ACF Maps admin error: “For development purposes only” even after supplying api key

This issue is occurring even when I tried registering the key via various actions and filters. Fails Method 1: function my_acf_init() { acf_update_setting('google_api_key', 'xxx'); } ...
0
votes
2answers
825 views

This page can't load Google Maps correctly [closed]

I am trying to get map from address but there are appear some error like You have exceeded your request quota for this API in my console so can anyone help me to fix this. My Javascript code look ...
0
votes
1answer
38 views

create a shortcode for embedding google map in a page

I'm trying to create a shortcode that lets you embed google map anywhere in wordpress page. shortcode must be able to pass two attributes ( latitude and longitude ) Below is edited question ( I did ...
1
vote
0answers
921 views

Refresh Markercluster after ajax call

I have an ajax function that queries posts based on users by a certain role which is fine and works but the problem is that I am trying to refresh the markers on Google Maps after the ajax is complete ...
1
vote
1answer
734 views

Google maps causing mixed content in header

On two pages of a website I have a google maps coded via iframe like so: <iframe src="https://www.google.com/maps/embed?pb=rest-of-link" width="100%" height="300" frameborder="0" style="border:0"&...
-2
votes
1answer
158 views

Google Map not displayed [closed]

I'm setting up a website and I'm using Avada Theme. I'm using avada's builder to insert a Google Map but it won't show. I get this: Does anybody know what's going wrong?
-1
votes
1answer
388 views

Mixed Content: The page at 'https://www.taylortireauto.com/?s=contacts' was loaded over HTTPS [closed]

I'm trying to load the page. But I receive the error in console. Can someone please tell me how to solve this error. ?s=contacts:1137 Mixed Content: The page at 'https://www.taylortireauto.com/?...
-1
votes
1answer
496 views

How to handle multiple distance matrix api request in loop to reduce load and request time?

if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); $school_address =str_replace(' ','+',$school_address ); $school_address =str_replace(',','',$...
0
votes
0answers
502 views

Generate a radius search of custom post type locations

Alright so I've been searching for days and driving myself crazy looking for a solution. I want to create a search function that will allow the user to search for the companies locations that are ...
0
votes
1answer
200 views

mutiple shortcode instance on the same page

i'm building a google map shortcode plugin and i use wp_localize_script to pass variables to js script like (lat , lng , zoom...) . but i have an issue : when i use this shortcode twice or more in a ...
2
votes
1answer
347 views

AJAX in Wordpress, sending coords data to MySQL and show after into map

I've spent some months trying to figure out how to get users geolocation and pass it into MySQL and so after being shown with markers on the map. I've got stuck already in passing the data through ...
0
votes
1answer
288 views

Where is fusion-gmap-container?

I’ve been given a beautiful WordPress website to maintain. We use the Avada theme. We have a contact page, which has a large Google map, with the location of our business. A little while ago, I ...
1
vote
1answer
379 views

How to display Unicode correctly?

I'm wondering how to get WordPress to display these Unicode place names correctly? I use Google Maps API JSON data to get the place names and create Woocommerce categories for products. However, for ...
0
votes
1answer
789 views

Advanced Custom Fields - Google Map Won't Render Unless Variable Dumped

I'm trying to display the Google Map object created using the Advanced Custom Field plugin's built-in generator. I used the stock Javascript/CSS/PHP outlined here as this exactly matches my use case: ...
0
votes
1answer
155 views

Display posts on a map

The wordpress mobile app lets you store gps position as option for each post. I would like to have a map that displays a point for each post. I saw a lot of questions about this, most of them are ...
-1
votes
1answer
4k views

In WP, Google map error initMap is not a function [closed]

Getting a series of errors on some Goole maps JS, that will show a series of markers from a json file as well as showing the list. The map comes up and works with all the markers and info windows ...
-1
votes
1answer
456 views

google map Info window [closed]

I am using Maps module of Divi theme and i would like the info window on this map to stay open by default, instead of onclick. http://www.wilsonhrm.nl/contact-us/ How can I achieve that?
0
votes
1answer
99 views

Anybody knows if i could upload a leaflet or openlayers3 map to wordpress webpage?

I have an openlayers3 webmap edited by html,js and css. I want to upload my webmap into my wordpress webpage but i don't know how. I have filezilla to upload the files. Which directory is to upload ...
1
vote
0answers
105 views

'SiteOrigin Google Maps' widget conflicting with 'ProtheusThemes'

not sure if this is the right forum, but I wanted to share the experience. on wordpress site that I manage I'm having trouble displaying google map... I'm using some ProtheusTheme that seem to cover ...
0
votes
1answer
229 views

Google Maps API in wordpress

I get "documentElement of null" error. I am trying to follow https://developers.google.com/maps/articles/phpsqlajax_v3 UPDATE: On using dev tools it seems that the "downloadUrl()" function has ...
0
votes
0answers
653 views

Dealing with multiple Google maps API calls

Is there any way to eliminate multiple google maps API calls? On my site it's called from at least 3 different sources, and when it's called multiple times it's crashing all the maps. How you dealt ...
1
vote
1answer
151 views

Create a custom taxonomy that will be used to create and filter markers in a Google Map

I'm trying to create a Wordpress shortcode that will output a full-width, filterable Google Map with a set of markers that will be loaded on first load (and shown or hidden depending on the filters ...
4
votes
1answer
2k views

Google Maps not displaying in wordpress using Google Maps Javascript API

I was wondering if someone could help me out. I am currently trying to set up the google maps Javascript API to work with wordpress on a localhost but i have had no luck. Please find my steps below. ...
0
votes
1answer
942 views

Implement Google Maps JS on Wordpress

I am looking to implement this code on my wordpress site as efficiently as possible https://developers.google.com/maps/documentation/javascript/styling and I only want the JS to load on posts/pages ...
-4
votes
1answer
3k views

Google Map JavaScript error after migrating

After migrating www.irfc.eu from previous domain, Google Map (it's a widget of the theme) stopped working. JavaScript console says: Google Maps API error: MissingKeyMapError https://developers.google....
0
votes
1answer
2k views

ACF google map not working [closed]

I tried to add google map field in ACF, but when I try to edit or add new article it show the map for sec and then diable it and wrtie: Oops! Something went wrong. This page didn't load Google Maps ...
-2
votes
1answer
596 views

Custom Backend data for map to JSON file?

I want to create a map in the frontend with data that is populated with Point of interests. I want to manage the POI data in the backend but need a generated JSON file from that backend data that ...
2
votes
0answers
108 views

Google Maps in WordPress

I am dealing with an issue that I would like to have some suggestions on how to solve it. I have a self-hosted WordPress managed website where I implemented a Google Map to display on a page. On this ...
0
votes
1answer
5k views

Integrating PHP into Javascript to display map markers with Google API

I am getting one map marker to display but not multiple markers. However the data displays in the HTML log. I think I am missing a loop or did not use my current loop correctly. Anyone who could ...
0
votes
1answer
2k views

Where to paste Google Map Snippet / JavaScript / CSS for WordPress integration

I have a working JS Fiddle here: http://jsfiddle.net/geocodezip/50g6vgns/1/ It is not displaying correctly when I paste all the code onto the text area of a WordPress page. For the external ...
5
votes
3answers
7k views

Remove extra Google Maps script

I'm developing a plugin that use a Google Maps API. The plugin enqueuing script in this way: wp_enqueue_script('google-maps', 'http://maps.google.com/maps/api/js?sensor=false&callback=initialize&...
1
vote
0answers
1k views

PHP array to JS array to use in google map

Hi I want to use some data stored in a php array to use it in google map api, to populate multiple locations in a the map. I use the loop to create my php array. <?php while ( $the_query-&...
1
vote
1answer
279 views

WordPress Google Maps in Custom Theme

So I'm building a custom theme and implemented the Google Map API so I can give it a cleaner feel and so on then the normal Google Map. I've run into a problem when implementing my Marker as I ...
0
votes
1answer
81 views

Why is this script not working?

I've got the script from here http://www.mikedoesweb.com/2012/convert-tag-to-google-maps-embed-automatically-with-jquery/ I need to replace an address with a google map inside the post content. None ...
2
votes
1answer
139 views

Run a Parallel PHP Application with Wordpress

I have a PHP based application that runs on the Google Maps API. Most of it is written in straight PHP and Javascript, but I want to use some sort of CMS or tool to upload images, because there will ...
1
vote
1answer
48 views

I need to get an array from the wordpress database

I need to convert this code //This creates an array from the database and allows us to use it later in the jquery //CREATE SQL STATEMENT $sql_locations = "SELECT * FROM tbllocations"; //EXECUTE SQL ...
0
votes
1answer
92 views

Foreach loop inside foreach loop?

I have a situation where only way seems to use loop inside a loop. Is that a good idea? Like everybody else, Im looking for the most optimized solution possible. Situation: I need to assing ...
0
votes
1answer
176 views

Show different Google Map markers for different post_meta values

A lot of websites use it but suprisingly nobody tell us how to do it (right way). I have few ideas but Im not sure if this was the most efficient way - Im not very good with loops (under a year of ...
0
votes
0answers
1k views

Add different custom markers for different post types in Google maps API

I'm using the Google maps javascript API to create a map showing locations for multiple post types. I can create a custom map marker icon, but cannot figure out how to display a different marker icon ...