ahocevar
c74b9c1d55
Do not prevent default on pointermove
...
Instead, only prevent default on handled pointerdown events. This makes
the `focus` condition work with interactions that involve dragging on
touch devices.
2018-07-31 08:33:15 +02:00
ahocevar
45cf296ed4
Simplify calculation and add tests
2018-07-21 10:22:42 +02:00
Frederic Junod
35158efbf0
Fix spelling
2018-03-12 15:18:58 +01:00
Tim Schaub
f81f3e2e9f
Remove static members from Draw interaction
2018-02-21 15:55:22 -08:00
Marc Jansen
6e764a20b3
Import events conditions explicitly
2018-02-05 20:36:42 +01:00
Frederic Junod
70b0d5d1cc
Check if the sketch feature is defined in finishDrawing
...
Fixes #7035
2018-01-30 09:57:05 +01:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07:00
Andreas Hocevar
276194d554
Add tests for vertex drag
2018-01-15 13:21:07 +01:00
Andreas Hocevar
fbf951f005
Stop handling events immediately when click tolerance is exceeded
2018-01-14 23:26:28 +01:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
8cba211ecd
Rename _ol_pointer_PointerEvent_ to PointerEvent
2018-01-11 13:44:45 -07:00
Tim Schaub
ca6ea355e6
Rename _ol_source_Vector_ to VectorSource
2018-01-10 09:36:28 -07:00
Tim Schaub
45c6e43b42
Rename _ol_layer_Vector_ to VectorLayer
2018-01-10 09:36:23 -07:00
Tim Schaub
1c1f008238
Rename _ol_View_ to View
2018-01-10 09:35:42 -07:00
Tim Schaub
22fce4f97b
Rename _ol_Feature_ to Feature
2018-01-10 09:35:35 -07:00
Ron Young
9fa59d0735
rename map in tests
2017-12-21 23:11:42 -07:00
Marc Jansen
02002082bf
Named exports from ol/array module
2017-12-19 17:22:58 +01:00
Marc Jansen
4868098495
Rename _ol_interaction_Draw_ to Draw
2017-12-15 09:43:58 -07:00
Marc Jansen
4a1d50730b
Rename _ol_interaction_Interaction_ to Interaction
2017-12-15 09:39:10 -07:00
Marc Jansen
ec64789940
Rename _ol_MapBrowserPointEvent_ to MapBrowserPointerEvent
2017-12-15 16:18:32 +01:00
Tim Schaub
ac7985a5ad
Rename _ol_geom_Circle_ to Circle
2017-12-14 08:57:52 -07:00
Tim Schaub
9d396280b0
Rename _ol_geom_MultiPolygon_ to MultiPolygon
2017-12-14 08:56:51 -07:00
Tim Schaub
c502f016f7
Rename _ol_geom_Polygon_ to Polygon
2017-12-14 08:56:12 -07:00
Tim Schaub
3c78cb7872
Rename _ol_geom_MultiLineString_ to MultiLineString
2017-12-14 08:55:33 -07:00
Tim Schaub
f7b3876c1b
Rename _ol_geom_LineString_ to LineString
2017-12-14 08:54:53 -07:00
Tim Schaub
ad5806c29d
Rename _ol_geom_MultiPoint_ to MultiPoint
2017-12-14 08:51:53 -07:00
Tim Schaub
eadec38ae2
Rename _ol_geom_Point_ to Point
2017-12-14 08:49:10 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Matt Walker
90d8224a08
Fix Draw.removeLastPoint exception when no points to remove
2017-12-01 15:50:21 +00:00
Tim Schaub
a3e3e99baa
Get rid of useless test exports
2017-08-17 15:16:58 -04:00
Tim Schaub
46bcce464f
Add missing requires to tests
2017-08-16 13:43:28 -04: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
Frederic Junod
392cbcc138
Enforces spacing around commas
2016-12-14 13:42:47 +01:00
Andreas Hocevar
fb1a8335ac
Do not draw circle when pointer not moved
2016-11-03 12:59:36 +01:00
Björn Harrtell
9d5453a927
Test to validate sketch polygon
2016-10-27 18:56:11 +02: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
1c8ed12b68
Assert that the freehand option properly sets the condition
2016-10-15 05:45:23 -06:00
Tim Schaub
ed5dbd1293
Put test requires on top
2016-08-08 09:58:11 -06:00
Tim Schaub
035885c25d
Move interaction files so they are named like their provides
2016-08-07 10:49:10 -06:00