Convert ol.interaction.DragAndDropEvent#get* methods into properties
This commit is contained in:
@@ -115,8 +115,8 @@ var map = new ol.Map({
|
||||
|
||||
dragAndDropInteraction.on('addfeatures', function(event) {
|
||||
var vectorSource = new ol.source.Vector({
|
||||
features: event.getFeatures(),
|
||||
projection: event.getProjection()
|
||||
features: event.features,
|
||||
projection: event.projection
|
||||
});
|
||||
map.getLayers().push(new ol.layer.Image({
|
||||
source: new ol.source.ImageVector({
|
||||
|
||||
Reference in New Issue
Block a user