Openlayers3: Abort The Draw Interaction
i am using for my html a draw interaction for drawing routes manually // manual route creation event $('#createRoute').click(function() { // remove prev
Solution 1:
Wait until your feature is added to ol.source.Vector
:
your_source.on('addfeature', function(event) {
saveRoute(event);
map.removeInteraction(draw);
console.log("Map Interaction(Route): deactivated");
});
Post a Comment for "Openlayers3: Abort The Draw Interaction"