4

I want to call a callback on leaflet after drawing a feature. In openlayers I do it like this :

customControl= new OpenLayers.Control.DrawFeature(
                    tempLayer,
                    OpenLayers.Handler.Point,
                    {
                        title: 'Custom Control',
                        displayClass: "olControlClass",                        
                        featureAdded: onCustomControlCallback
                    });

How can I do the same in leaflet ?

1 Answer 1

2

The leaflet draw plugin is similar to openlayers draw control. see https://github.com/Leaflet/Leaflet.draw#drawdrawstop

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.