Fire An Event When Draw Finishes And New Polygon Is Added To The Features List In Openlayers 3
I am trying to create an interactive map with OpenLayers 3, where the client can draw polygons on the map, and then retrieve the coordinates of the polygons which were drawn. I've
Solution 1:
Listen when the feature is (really) added to ol.source.Vector
instead of drawend
, so:
this.vectorLayer.getSource().on('addfeature', function(event){
// ...
});
Post a Comment for "Fire An Event When Draw Finishes And New Polygon Is Added To The Features List In Openlayers 3"