This support ticket is created vor 2 Jahre, 7 Monate. 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.
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.
You want users to be able to draw on a map and... save the drawings?
That's not an available feature and would require a bespoke solution.
To give you an idea of the kind of thing that is involved in drawing on a Toolset map programmatically, you can check this code snippet by way of an example: hidden link
Add the following code to the content template’s JS box and change the mapid and center value as per the actual requirement.
jQuery(document).ready(function($){
$( document ).on('js_event_wpv_addon_maps_init_map_completed', function( event, event_settings ) {
// Get the map using our .get_map() method...
var mapid = 'map-11';
var myMap = WPViews.view_addon_maps.get_map(mapid);
// center value
var center = new google.maps.LatLng(21.7644725, 72.1519304);
// And then use Maps API .setOptions() method to programmatically change any option on the map.
var coverageCircle = new google.maps.Circle({
strokeColor: '#FF0000',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: '#FF0000',
fillOpacity: 0.35,
map: myMap,
center: center,
radius: 100,
});
} );
} );