How can I produce a map, with the address as the centre of the map (if there are no results) which the user gave as his location?.
To display the address that the user gave as "his centre", you can listen to the URL parameter `toolset_maps_distance_center`.
It results in a ShortCode like this:
//Render the Map [wpv-map-render map_id="map-UNIQUE!!"][/wpv-map-render] //Render the marker with address the center given [wpv-map-marker map_id="map-UNIQUE!!" marker_id="marker-UNIQUE!!" address="[wpv-search-term param='toolset_maps_distance_center']"][/wpv-map-marker]
==> Adapt UNIQUE!! to unique IDs
(map_id must match, marker_id must be unique again)
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term
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 |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 1 reply, has 2 voices.
Last updated by 6 years, 10 months ago.
Assisted by: Beda.