Skip Navigation

[Resolved] Displaying Google maps

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

This topic contains 2 replies, has 2 voices.

Last updated by Beda 6 years, 8 months ago.

Author
Posts
#663715
cvah-1.png
cvah-2.png

Tell us what you are trying to do?
Im trying to have a map displayed on a single post item, that corresponds with the address

Is there any documentation that you are following?
Im lost in documentation...

Is there a similar example that we can see?
In the attachments, you can see the Google Map properly rendered in the back-end. Im using nothing but Toolset features to build a page. No other functionality to avoid interference.

What is the link to your site?
hidden link

(Quick side question; how to change the language of Toolset´s user interface. It is currently in Dutch, but hardly any documentation is available in Dutch, so I´d prefer English. All the terms and corresponding translations is very confusing. I hardly understand the different between template builder and Layouts, for example. )

#664746

I found the solution myself

#664754

This is the documentation about using Toolset Maps:
https://toolset.com/documentation/user-guides/display-on-google-maps/

It looks like you used a Wrong Feld for this.

Please follow these steps to display your content on a map as a marker.

1. Install at least Toolset Types, Views and Maps
2. Create a Google Maps API Key as instructed here and insert it in Toolset > Settings > Maps > Google Map API key
https://toolset.com/documentation/user-guides/display-on-google-maps/#api-key
3. Create an "Address" Field in Toolset > Post Fields
4. Create a few posts and add an Address.

Then, to display this, you have 2 options.
Either you display all posts or a list of them in a View, or you display the map with a marker on each post.

It seems you want to do the second, hence, you would first insert the Map as a ShortCode, for example in the Post Body, or a Layouts Visual Editor Cell or similar (depends on your setup)
It should result in a ShortCode similar to this:

[wpv-map-render map_id="map-2"][/wpv-map-render]

Then, you would insert the marker, with the GUI again, and pass the correct field and map-id.
This results in a ShortCode like:

[wpv-map-marker map_id="map-2" marker_id="marker-2" marker_field="wpcf-addaer"][/wpv-map-marker]

Then, on the front end, if your Google API is correctly set and the shortcode not broken, it'll display a map with the marker set to the address saved.

Your setup seems to use a mix of legacy Maps and new Toolset Maps.