Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [google-maps]

The tag has no usage guidance.

0
votes
0answers
17 views

Google map is not displayed in some browsers in wordpress site [on hold]

I developed a website using WordPress. I added a Google map functionality in it. I can see the map there but my client is unable to see the map. The error is maps.google.com's server IP address ...
0
votes
0answers
12 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
33 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
33 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
210 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
135 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 ...
-1
votes
1answer
133 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
0answers
34 views

Advanced Google maps Shortcode Customization

I have a Google map whose previous developer created it on WordPress with Advanced Gmaps. The site is no longer on WP, so I have to work with a json string in the div tag. I need to add a URL to the ...
0
votes
2answers
664 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
0answers
30 views

Finding the places saved in database ,nearby the given address using wordpress

I have a custom post named stores ,in that each post contains the full details about the specific store, including the geo location. Then i have a search box in front end where the users can search ...
0
votes
1answer
30 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
586 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
288 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
72 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
160 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
385 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
373 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
134 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 ...
3
votes
1answer
261 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
217 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
275 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
576 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
96 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
3k 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
394 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
67 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
99 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
206 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
569 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
votes
0answers
81 views

How to use a wpdb query to plot markers on Google Maps API?

I'm trying to plot markers on a map using a query that outputs a custom meta field of wpdb. I tried to assign the query to a variable and pass it to the Javascript through AJAX, however I failed to ...
1
vote
1answer
137 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 ...
3
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
721 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
441 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
100 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
6k 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
235 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
80 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
123 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
47 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
83 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
145 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
896 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 ...
0
votes
1answer
2k views

create dynamic google map with iframe api

I want to create dynamic google map with iframe when customer can add address in custom field suit the google map automatically generate the custom field suit value into location . how can its ...
-1
votes
1answer
791 views

Adding a google map to a metabox, map has inline style height=0

I've read through a few posts here on stack exchange and cannot figure out what I am doing wrong. Here's my metabox callback: <script type="text/javascript"> function initMap() { ...