Skip Navigation

[Resolved] Google Map Markers are not loading

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.45 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 5 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1359549

Hi,

I have created a toolset view that populates with the correct data however the map does not register the address markers (despite drawing on the custom address marker field).

I've been reading through the help advice on toolset however the map is not performing as expected. I wanted to use the block editor to update a map with the address pins of the underlying search items. I have followed the instructions: https://toolset.com/documentation/user-guides/how-toolset-plugins-work-with-gutenberg/toolset-maps-block/

Please note as well as using the block editor functionality to source the underlying marker addresses I have also used the toolset short codes however the markers just don't appear on the map. A marker will appear when I use a single marker (e.g. manual GPS Coordinate) however it won't appear when I use the search address option despite being able to locate the location in the search bar.

I'm not sure how to proceed. I've created the view - the data comes through but the map just doesn't respond. What can I do to get the map to perform as the instructions say it should?

Thank you!

Brett

#1359697

Hi Brett,

Thank you for waiting.

I performed some tests on my website and instructions from the guide ( https://toolset.com/documentation/user-guides/how-toolset-plugins-work-with-gutenberg/toolset-maps-block/ ), to show the map markers from a post view as a source, worked as expected.

On your website, I noticed that the used Google Maps API key doesn't seem to be configured correctly.

If you'll go to WP Admin -> Toolset -> Settings -> Maps and use the "Check API" button, it will show this message:


REQUEST_DENIED - API keys with referer restrictions cannot be used with this API.

Screenshot: hidden link

Please remove any referer restrictions from your Google Maps API key's settings and make sure that services related to Maps and Places are enabled against it.

Here are some useful guides on the topic:

https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/
hidden link

When the API key will be fixed, the markers should show on the example page, that I created for you:
hidden link

Also, I noticed that the map was again placed inside a content template "Loop item in Test feature" ( hidden link ) which is a loop item for a post view named "Test feature" ( hidden link ).

As we discussed, you should start with a page, insert a map block in it and then insert a view block in it. After selecting the desired view, you'll be able to link view and the map together to show markers.
( please refer to my example page )

It seems you're creating a view first, which is fine but only use it to show what should be inside the post list and the search form, but it shouldn't include a map.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar