Skip Navigation

[Resolved] Use toolset maps in elementor

This support ticket is created 3 years, 11 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 – 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 3 replies, has 2 voices.

Last updated by Waqar 3 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#1990207

Hi,

I've created a page in toolset view with a map and several locations made in a view-loop. Now I've designed a page in elementor and inserted the view. how can I insert the map with all the locations?

Can I use https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/ ??

Site is in development.
I want this page (toolset view) hidden link
to use in a elementor page like hidden link But as you can see only there are no markers etc

#1990299

Hi,

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

In this case, you can insert the "wpv-map-render" in the page where you'd like to show the map:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render

And in the view's loop, you'll need to include a "Fields and Text" block, to insert the "wpv-map-marker" shortcode:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker

Important: Please make sure that the "map_id" attribute value in both shortcodes is the same.

regards,
Waqar

#1990417
help2.jpg
help1.jpg

Hi Waqar,

thanks for answering my question. But still have more ... How can I include athe "Fields and Text" block in the view? is that the view wich I've made before? Where there is the title, address, info etc?

#1990943

Thanks for writing back and your understanding is correct.

Since you've created one view on the "stemlocaties" page and then showing it on the homepage, you'll also add the "Fields and Text" block inside the loop of the same view.
( as shown in your screenshot: "help1.jpg" )

Note: In your other screenshot "help2.jpg", I see that you've used the "wpv-map-render" shortcode without any "map_id" attribute value, which is mandatory:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render

Please update it to include some map_id, so that you can use the same map_id in the "wpv-map-marker" shortcode that you'll place inside the view. This will tell the page to use a specific map to show the markers on.

Example of "wpv-map-render" shortcode:


[wpv-map-render map_id='map-1']

Example of "wpv-map-marker" shortcode:


[wpv-map-marker map_id="map-1" marker_id="[wpv-post-id]" marker_field="wpcf-location-field"]

Note: You'll replace "location-field" with the actual slug of your location field.