Problem:
The goal here was to use a SVG Map made by MapSVG Plugin, as a Search input for a View.
MapSVG produces interactive maps where regions in the map can be clicked, and hold information such as the region name and id.
Obviously, clicking in any area within the map is supposed to trigger the View search passing data from the Maps Object to the search.
Solution:
This requires custom code that cannot be generalized and described as one, standard solution.
The main idea is to use the MapSVG JS API to get the ID of the area clicked, on click and pass that to the adequate URL Search parameter for Views.
A possible solution can be seen here, and here:
https://toolset.com/forums/topic/insert-svg-map-in-a-toolset-search/#post-1325845
https://toolset.com/forums/topic/insert-svg-map-in-a-toolset-search/#post-1322831
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
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 13 replies, has 2 voices.
Last updated by 5 years, 2 months ago.
Assisted by: Beda.