1

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?

1 Answer 1

3

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();
    }
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.