Problem:
How to set mobile gestures on Toolset map and set gestureHandling option to greedy.
Solution:
You can use Toolset Map's JS callback event js_event_wpv_addon_maps_init_map_completed in order to set or customize map options for your map.
For example:
jQuery( document ).on('js_event_wpv_addon_maps_init_map_completed', function( event, event_settings ) { // Get the map using our .get_map() method... var map = WPViews.view_addon_maps.get_map('map-2'); // adjust your map ID accordingly // And then use Maps API .setOptions() method to programmatically change any option on the map. if ( map ) { map.setOptions({gestureHandling: 'greedy'}); } } );
You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/mobile-gestures-on-toolset-map/#post-624268
Relevant Documentation:
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
This topic contains 5 replies, has 2 voices.
Last updated by vitoV 6 years, 1 month ago.
Assisted by: Minesh.