Hi I am using this drawing extended library for google maps API.Link Here
The drawing functionality is working fine, but now I need to save all the drawing objects created on the Map. What is the best way to do it?
Hi I am using this drawing extended library for google maps API.Link Here
The drawing functionality is working fine, but now I need to save all the drawing objects created on the Map. What is the best way to do it?
You need to handle drawing events. Information about drawn object is passesed to a callback function i.e.:
google.maps.event.addListener(drawingManager, 'overlaycomplete', function(event) {
if (event.type == google.maps.drawing.OverlayType.CIRCLE) {
var radius = event.overlay.getRadius();
}
});