Skip Navigation

[Resolved] Show a map

This support ticket is created 3 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.

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 6 replies, has 2 voices.

Last updated by Charles 3 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2218731

Tell us what you are trying to do?
Display a map
Is there any documentation that you are following?
No
Is there a similar example that we can see?
hidden link
What is the link to your site?
hidden link

#2219037

Hi,

Thank you for contacting us and I'd be happy to assist.

From your message, the requirement about the map is not clear, but, in most cases, an address type field is needed to show map markers connected to posts on the map.

Here is the guide on adding an address type field, using the Toolset Maps plugin:
https://toolset.com/lesson-placement/lesson-placements-1622939-1625485/

Once, you have saved the post's location using this address field, you can show a map with this post's location marker, on the single post page:
https://toolset.com/lesson-placement/lesson-placements-1622939-1621393/

And to show the map markers of multiple posts on a single map, you can create a view, as explained here:
https://toolset.com/lesson-placement/lesson-placements-1622939-1620853/

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

regards,
Waqar

#2221863

Hello Waqar, I am struggling with Google map functioning.

#2222375

Thanks for writing back.

From the error message, it seems that the APIs necessary to geocode addresses are not active for this key.

In your Google Maps Platform dashboard, click the blue "Enable APIs and Services" button and enable Places, Geocoding, and Geolocation APIs to start with. Then try to test the API again at Toolset > Settings > Maps tab.

I hope this helps and please let me know how it goes.

#2222505

Hello Waqar,

I followed your instructions, and at least a map shows up, but so does the same message. Perhaps its the IP address, what IP address should I be using, my server or my ip location on map?

#2223819

I'm not seeing the same error when I use the check API button, so it looks like you've removed the IP restrictions from your Google Maps API key.
( screenshot: hidden link )

When only the main/primary key is added, it is used for both the client-side and the server-side requests.

The key with IP/domain restriction works for the client-side requests, but not for the server-side ones. To overcome this limitation, the second optional key field was introduced.

When you'll include a second optional key, that will be used for the server-side requests, allowing you to use a primary key with the IP/domain restriction turned on.

If your hosting server has a static IP, you can optionally enable IP/domain restrictions on the second key too, but it is not necessary, since this second key for the server-side requests is not publicly exposed.

I hope this explanation helps.

#2224353

My issue is resolved now. Thank you!