Make DragBox interaction dispatch events

- boxstart/boxend events are dispatched,
- behavior is removed,
- geometry drawn by box render is a simple polygon instead of one with hole.
This commit is contained in:
Antoine Abt
2013-12-19 15:48:41 +01:00
parent 43b8a72e62
commit adfe20dd12
5 changed files with 43 additions and 65 deletions

View File

@@ -314,7 +314,6 @@
/**
* @typedef {Object} olx.interaction.DragBoxOptions
* @property {function(ol.Map, ol.geom.Polygon)} behavior Behavior function.
* @property {ol.events.ConditionType|undefined} condition A conditional
* modifier (i.e. Shift key) that determines if the interaction is active
* or not, default is always.