2016-06-20 5 views

Antwort

1
// draw is an instance of ol.interaction.Draw 
// when draw ended but the feature was not added yet to ol.source.Vector 
draw.on('drawend', function(evt){ 
    console.info(evt.feature); 
}); 

// vectorSource is an instance of ol.source.Vector 
// added to source 
vectorSource.on('addfeature', function(evt) { 
    console.info(evt.feature); 
}); 
Verwandte Themen