Make interaction ctor only have an option object
This commit is contained in:
@@ -235,10 +235,8 @@ var overlay = new ol.render.FeaturesOverlay({
|
||||
styleFunction: overlayStyle
|
||||
});
|
||||
|
||||
var modify = new ol.interaction.Modify(overlay);
|
||||
var select = new ol.interaction.Select({
|
||||
featuresOverlay: overlay
|
||||
});
|
||||
var modify = new ol.interaction.Modify({ featuresOverlay: overlay });
|
||||
var select = new ol.interaction.Select({ featuresOverlay: overlay });
|
||||
|
||||
var map = new ol.Map({
|
||||
interactions: ol.interaction.defaults().extend([select, modify]),
|
||||
|
||||
Reference in New Issue
Block a user