Stack Exchange Network

Stack Exchange network consists of 174 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
13 views

Google Maps Not Working [closed]

I keep getting the error "For development purposes only" on my Google Maps. I've added the API credentials from the Google console. I'm using Betheme on Wordpress, and I've added the API in there. ...
0
votes
1answer
22 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
19 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
31 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
27 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
415 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
28 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
28 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 ...
0
votes
0answers
18 views

Remove querry string from a html link

For perfomance purposes (remove Google Maps Scripts) i use Google static maps to load a lot of locations in my Wordpress website. All maps have differents urls but the syntax is similar. I'm not ...
1
vote
0answers
446 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
166 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
31 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
76 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
332 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
311 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
105 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 ...
0
votes
0answers
1k views

Uncaught SyntaxError: Invalid or unexpected token

<script> function initMap() { var uluru = {lat:57.064767, lng:24.842757}; var map = new google.maps.Map(document.getElementById('map'), { zoom: 15, center: uluru }); ...
3
votes
1answer
230 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
173 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
229 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
454 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
73 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
2k 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
362 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
58 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
90 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
0answers
165 views

Google Maps in jQuery Tabs

I am having some trouble with the Google Maps API and I cannot seem to find a solution myself. I have been searching in 5 days which led me to ask you guys. The problem is that I am trying to load a ...
0
votes
0answers
127 views

How to display 2 google maps on 2 different pages?

I am not able to display two different google maps in two different pages. Page 1 <div id="contactmap"></div> Page 2 <div id="destinationmap"></div> Here is the js //...
0
votes
1answer
185 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
547 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 ...
0
votes
0answers
63 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
117 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
628 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
395 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
95 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
2answers
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-&...
0
votes
0answers
61 views

Google map api in Wordpress: lower quality / downscale

I've created my first map using google api v3 (without key). Wrote everything in a js file, and tested it with a local static test.html file that basically has: <script type="text/javascript" src=...
1
vote
1answer
215 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
77 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
122 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
43 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
80 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
132 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
850 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 ...