Convert ol.interaction.DragAndDropEvent#get* methods into properties

This commit is contained in:
Tom Payne
2014-01-23 18:37:00 +01:00
parent 3d68a3550e
commit 45350a34ed
5 changed files with 20 additions and 27 deletions

View File

@@ -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({