Skip Navigation

[Resolved] ToolSet Maps not working. Seeing a random map but no markers on it.

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the users map markers are not appearing on there map.

Solution:

If your map has been setup correctly then this is usually due to 2 main issues. Either the API is not able to validate using your URL if you are using a restricted API or You have not enabled all the required API.

For the URL restrictions you need to enter your url like this @https://*.myurl.com/*

For the enabled apis you must have the Geocoding, Places and Maps Javascript API enabled

This support ticket is created 6 years, 3 months 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.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by PaulS4783 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1110415
wrong-map.png

Hello.
I have just installed ToolSet Maps. First time user.
I created a Google Maps API and it seems to be connecting.

Using the Beaver Builder plugin on the site, when I input a static address, I get a map and marker.
However, when I try to create a map and marker using the ToolSet short codes I just get some random map (mid-Atlantic ocean) and no marker.

Not sure if this is relevant, but some of the tutorials say I should be seeing a map on the DASHBOARD next to the Address custom field. I don't have that.

See this page.
hidden link
The TOP map was created via the Beaver Builder plugin, inputting a static address.
The bottom map via ToolSet when trying to access the SAME address via a shortcode.

The shortcode I am using is :
[wpv-map-render map_id="map-5"][/wpv-map-render][wpv-map-marker map_id='map-5' marker_id='marker-5' marker_field='wpcf-event-address'][/wpv-map-marker]

As you can see, I am able to print the address in text form on this page.

#1110644

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paul,

Thank you for contacting our support forum.

Would you mind allowing me to have admin access to the website so that I can investigate this one for you ?

Thanks,
Shane

#1111564

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-09-19 at 9.17.51 AM.png

Hi Paul,

It seems that the issue is with the API, see screenshot

Could you try using an unrestricted API key and let me know the results?

Thanks,
Shane

#1112021
google-apis-credentials-domain-verification.png

You were right. The Google API wasn't working correctly.
For future reference, this post was helpful.
hidden link

It could have been ONE or ALL of the following issues.

a) Billing NOT connected.
I had added a billing method to the Google Developers Account BUT didn't realize the Project needs to be connected to it individually.

b) Domain verification
I'm not sure if this step is necessary but under the Google Developers Account "Credentials" section there is a sub-heading for "Domain Verification" which I added (Maybe this also needs to be setup via Webmaster Search Console prior. Not sure.)
See screenshot.

c) In the ToolSet Documentation it ONLY talks about the Google Maps (JavaScript) API.
But I also found this support thread:
https://toolset.com/forums/topic/google-api-request_denied-this-api-project-is-not-authorized-to-use-this-api/

Your colleague Christian suggests ALSO enabling the "Places, Geocoding, and Geolocation APIs".
I did this as well.
Are these OTHER API's essential? If so, your documentation should be updated.

-----------------------------------------------------------------------

THE REMAINING PROBLEM is that I wasn't able to set an "application restriction" on the API.
Well actually, it's trivial to do that within Google Developers Console but in ToolSet I get an error message.
HOW can I restrict the API to this domain so that it doesn't get abused?

#1112210

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-09-20 at 6.21.23 AM.png

Hi Paul,

Usually the restriction of the API is with Google. Could you try entering the URL for the restrictions with the wildcards? e.g hidden link

Please try this and let me know.

I also agree that the documentation is outdated and should be improved as these 3 apis are required. See Screenshot

Thanks,
Shane

#1115893

Thanks. Restricted API seems to be working for me now.