Frederic Junod
c0d57ad005
Allow string to be passed as ol.interaction.Draw type
2017-11-21 09:55:54 +01:00
Trevor Blades
62461bc1d2
Enable mouse wheel in freehand draw mode
...
Previously, events weren't being propagated if the active draw
interaction had its `freehand` property set to true. This means that
you can't use your mouse wheel to zoom the map in freehand mode.
This change sets the default `pass` value to true and adds additional
logic to determine when it should be set to false (and stop event
propagation).
2017-10-03 16:22:08 -07:00
Marc Jansen
d0ef05977b
Autofix indentation issues (eslint --fix)
2017-06-19 11:58:00 +02:00
Frederic Junod
55de3020d3
Fix ol.DrawGeometryFunctionType coordinates argument type
2017-05-10 13:36:29 +02:00
Frederic Junod
b1f38ea0e8
Fix spelling
2017-04-24 08:58:19 +02:00
Frederic Junod
d97d5e5164
Update finishCoordinate in ol.interaction.Draw#removeLastPoint
...
And don't crash if the function is called but no feature is drawn
2017-04-10 12:34:49 +02:00
Thomas Chandelle
08a118cc94
Determine if we should handle the drawing when the pointer is moving
2017-02-16 16:52:04 +01:00
Thomas Chandelle
73ef345a2d
Abort drawing to clear the sketch feature
2017-02-14 09:26:35 +01:00
Thomas Chandelle
4575c4ab6f
Do not draw circle when pointer not moved AND freehand is on
2017-02-14 09:22:07 +01:00
Tim Schaub
f5aea97d3b
All @api annotations imply stability
2017-02-06 09:22:05 -07:00
Guillaume Beraudo
1faead6d69
Rename and move some interaction enums
2017-01-18 21:11:59 +01:00
Tim Schaub
137cdc04c8
Remove ol.DEBUG
2017-01-01 20:37:52 -07:00
Tim Schaub
c6c105b62f
Shared module for map browser event type enum
2016-12-27 13:48:50 -07:00
Tim Schaub
4d52dcda22
Private enum for draw event types
2016-12-27 13:29:29 -07:00
Tim Schaub
f21d5fcdb0
Private enum for draw mode
2016-12-27 13:28:45 -07:00
Tim Schaub
50b9e598f6
Remove property enum from interaction constructor
2016-12-27 10:11:18 -07:00
Tim Schaub
37c445275f
Require ol.MapBrowserEvent
2016-12-03 10:37:49 -08:00
Andreas Hocevar
fb1a8335ac
Do not draw circle when pointer not moved
2016-11-03 12:59:36 +01:00
Björn Harrtell
1bd11c1958
Close polygon sketch at all times
2016-10-25 22:36:40 +02:00
Tim Schaub
ec1ad89338
Correct docs for createRegularPolygon() function
2016-10-16 15:54:15 -06:00
Tim Schaub
9b12cac5c6
Convenience function for drawing box-shaped polygons
2016-10-16 15:54:15 -06:00
Tim Schaub
8f57ebd2c6
Finish drawing on pointerup when in freehand mode
2016-10-15 13:47:34 -06:00
Tim Schaub
fad6d368a6
Allow freehand drawing without a modifier key
2016-10-15 05:37:15 -06:00
Tim Schaub
c58d98248a
Allow circles, squares, and boxes to be drawn in freehand mode
2016-10-14 11:11:43 -06:00
Frederic Junod
5a3794752a
Rename ol.interaction.InteractionProperty to ol.interaction.Interaction.Property
2016-10-13 11:50:42 +02:00
Frederic Junod
82d172545c
Rename ol.interaction.DrawEventType to ol.interaction.Draw.EventType
2016-09-07 16:43:18 +02:00
Frederic Junod
3d1b1d5ac5
Rename ol.interaction.DrawEvent to ol.interaction.Draw.Event
2016-09-07 16:40:42 +02:00
Frederic Junod
3e4ed489a4
Rename ol.interaction.DrawMode to ol.interaction.Draw.Mode
2016-09-07 16:38:16 +02:00
Andreas Hocevar
d1e4b33760
Rename goog.DEBUG to ol.DEBUG
2016-08-31 21:10:01 +02:00
Bart van den Eijnden
3118df320b
Only call addToDrawing if sketchFeature
2016-08-23 18:05:06 +02:00
Frederic Junod
522398d064
Add missing goog.require('ol.style.Style')
2016-08-17 10:00:36 +02:00
Frederic Junod
d4ad9ad616
Add missing goog.require('ol')
2016-08-17 09:57:21 +02:00
Tim Schaub
2da724cad4
Static ol.style.Style functions
2016-08-12 10:53:48 -06:00
Tim Schaub
907a65ab83
Remove unused goog.require() calls in the source
2016-08-08 09:58:10 -06:00
Tim Schaub
035885c25d
Move interaction files so they are named like their provides
2016-08-07 10:49:10 -06:00