Questions tagged [google-maps]

The tag has no usage guidance.

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

How to do google maps with own markers, text pop-ups on specific locations with clickabkle links

I have found a very nice Google map (which can be found in the footer on this link (https://www.flowbox.com/) And I would like to learn how to do something similar. I am kind of new to web programming....
Tomáš Brázdil's user avatar
0 votes
1 answer
30 views

How can i add a script with parameters?

I am trying to consume the google maps api in a metabox but i don´t know where to add the script provided by the api. <script src="https://maps.googleapis.com/maps/api/js?key=MYKEY></...
mateo ghidini's user avatar
0 votes
0 answers
17 views

Postcode lookup that redirects user to nearest store page?

I have searched high and low for a Wordpress solution that would let me have a simple text field where a user inputs their postcode or area, and then the field lookups the lat/long assigned to various ...
Michael's user avatar
0 votes
1 answer
39 views

Making the Google Maps API non readable

Our former developers created this code below. However, when it renders on our site, it displays the API key. Is there a better way to hide the API key while still enlisting the script to be executed? ...
HomeWell Web's user avatar
0 votes
0 answers
34 views

I want to lists posts in wordpress to nearest location entered by the user

I have created a custom post type of (e.g:) doctor, have search input on the front-end and integrated the Google Map API. I want the search to look for the nearest location under the given search ...
ubaid ismail's user avatar
0 votes
0 answers
318 views

Google map API Key restrictions does not recognize website IP

I created a wordpress website and I use google map API. I would like to add restrictions to prevent troubles. So I get the IP of the website from my hosting services and I also ping it to double check....
C0G1T0's user avatar
  • 105
0 votes
0 answers
69 views

Updating failed. The response is not a valid JSON response. specific to my browser when I include javascript in my html

I was able to insert custom html into my gutenberg wordpress editor (hosted by bluehost) and test my code by preview with no problems. I made calls to google maps and fetch() to get a list of ...
Sugarplumclaus's user avatar
0 votes
1 answer
522 views

Maps search box autocomplete with callback JS function?

I am struggling with using a callback for my Google Maps API. I am trying to have a Goolge Maps autocomplete search box and collect the Lat and Long for the searched location. I've found this answer ...
RobbTe's user avatar
  • 230
0 votes
0 answers
207 views

Nearby locations using Advanced custom fields, maps?

I am looking for a solution to query nearby locations based on a given lat and lng value, using ACF maps field. All I currently have is a lat and lng search value (that I want to use to search for ...
RobbTe's user avatar
  • 230
0 votes
1 answer
90 views

how to display google maps with javascript

I want to display one google custom map with javascript, I set this code in a code module, but when I post it only appear the code and not the map, how can I display my map correctly? The code works ...
mourazo's user avatar
  • 101
0 votes
1 answer
44 views

Where is my google maps on my page? [closed]

Recently, a client contacted me to make a few modifications on their website. Now consider that I'm not the person who made this website. It was supposed to be easy ; add a few lines here and there, ...
almecin's user avatar
0 votes
0 answers
22 views

Form behaving differently on small screens vs desktop screen

I have an issue and I would be grateful for any ideas! I'm using a simple template bought at ThemeForest and I successfully added google maps autocomplete functionality for addresses in a field via a ...
david's user avatar
  • 101
0 votes
0 answers
18 views

Adding geographical information on a registration page

I'm trying to get my head around developing a delivery app for restaurants where I make a a WP site with WooCommerce and a local payment gateway. I need the app to only allow registrations from ...
Neil Meyer's user avatar
0 votes
1 answer
340 views

ACF Map with custom styles field

I have an option page where i can create maps, i created a custom field to paste my own styles. What i need to do is pass this informations in my maps.js. What i have done is create an hidden div like ...
loicdls's user avatar
1 vote
0 answers
20 views

How to build a site with a map that shows where people offer and need help?

I'm trying to build a site where people can ask and offer help to each other. The idea is that people could publish "help needed" and "help offered" posts by filling in a simple form (with address ...
juhanamp's user avatar
0 votes
0 answers
314 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 ...
treyBake's user avatar
  • 127
-1 votes
1 answer
111 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 ...
user10497113's user avatar
0 votes
1 answer
73 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 ...
x0100's user avatar
  • 1
0 votes
1 answer
385 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( ...
bodyhammer's user avatar
0 votes
1 answer
246 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'...
bodyhammer's user avatar
1 vote
1 answer
6k 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. ...
Piotr Mucha's user avatar
1 vote
1 answer
818 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 ...
Piotr Mucha's user avatar
0 votes
1 answer
533 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'); } ...
wrestlingissodumb's user avatar
0 votes
2 answers
1k 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 ...
Pratik Patel's user avatar
  • 1,057
0 votes
1 answer
148 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 ...
maverick's user avatar
  • 407
1 vote
0 answers
2k 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 ...
Matt H's user avatar
  • 111
1 vote
1 answer
873 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"&...
aMJay's user avatar
  • 127
-2 votes
1 answer
202 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?
Georgio3's user avatar
-1 votes
1 answer
532 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/?...
V001's user avatar
  • 11
-1 votes
1 answer
710 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(',','',$...
Sarvesh Verma's user avatar
0 votes
0 answers
1k 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 ...
Chris's user avatar
  • 21
0 votes
1 answer
455 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 ...
geeky87's user avatar
  • 21
2 votes
1 answer
469 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 ...
Caesar's user avatar
  • 25
0 votes
1 answer
382 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 ...
Joe's user avatar
  • 121
1 vote
1 answer
783 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 ...
Neil's user avatar
  • 11
0 votes
1 answer
1k 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: ...
S. Coll's user avatar
  • 57
0 votes
1 answer
441 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 ...
user3590313's user avatar
-1 votes
1 answer
5k 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 ...
user2141419's user avatar
-1 votes
1 answer
551 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?
Loudframe's user avatar
0 votes
1 answer
193 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 ...
J.Peich's user avatar
1 vote
0 answers
119 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 ...
ManOnStack's user avatar
0 votes
1 answer
457 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 ...
khursheed Ali's user avatar
0 votes
0 answers
860 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 ...
Rafal's user avatar
  • 312
1 vote
1 answer
278 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 ...
Oriol A.'s user avatar
4 votes
1 answer
3k 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. ...
steamfunk's user avatar
  • 635
0 votes
1 answer
2k 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 ...
JoaMika's user avatar
  • 668
-4 votes
1 answer
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....
Michal Kroča's user avatar
0 votes
1 answer
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 ...
Shon Levi's user avatar
-2 votes
1 answer
1k 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 ...
christophe's user avatar
2 votes
0 answers
130 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 ...
Dougless's user avatar