Commit Graph

227 Commits

Author SHA1 Message Date
Tim Schaub
a3e3e99baa Get rid of useless test exports 2017-08-17 15:16:58 -04:00
Tim Schaub
3bdddeac1d More test cleanup 2017-08-16 13:45:13 -04:00
Tim Schaub
46bcce464f Add missing requires to tests 2017-08-16 13:43:28 -04:00
Tim Schaub
32c26c2524 More consistent clean up 2017-08-16 13:35:31 -04:00
Tim Schaub
17b6088a79 Allow drag and drop interaction to be configured with a source 2017-08-10 07:10:13 -06:00
Tim Schaub
86eacefe19 Allow modify interaction to be configured with a source 2017-08-09 13:35:25 -06:00
Andreas Hocevar
b0b68983f7 Allow to configure Extent interaction with an extent 2017-07-28 13:07:18 +02:00
Andreas Hocevar
cff9ef5e63 Remove lint 2017-07-09 16:11:36 +02:00
Marc Jansen
9fc0fb5e74 Merge pull request #6916 from marcjansen/eslint-4-upgrade
Upgrade eslint to v4.0.0
2017-06-22 07:55:06 +02:00
Marc Jansen
d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Frederic Junod
3e7aecd094 Handle setActive(false) on an interaction without map 2017-06-15 08:41:52 +02:00
Andreas Hocevar
9b41ea4017 Use class instead of style for Translate cursor 2017-06-12 13:30:25 +02:00
Andreas Hocevar
00c8a5845e Disable rotation for views with enableRotation: false 2017-06-08 17:29:47 +02:00
Frederic Junod
22939abb0d Only test ol.interaction.DragAndDrop if FileReader is supported 2017-06-06 09:43:59 +02:00
Andreas Hocevar
959367629e Merge pull request #6851 from ahocevar/draganddrop-active
Register/unregister listeners in setActive
2017-05-24 15:36:26 +02:00
Andreas Hocevar
278d3a0313 Register/unregister listeners in setActive 2017-05-24 14:51:39 +02:00
Thomas Chandelle
074fdeb212 Add snapping abilities on circles 2017-05-23 14:45:03 +02:00
Frederic Junod
ff91974345 Add insertVertexCondition to ol.interaction.Modify options 2017-05-09 15:34:43 +02:00
Tim Schaub
41ebe62852 Merge pull request #6675 from tchandelle/translate-cursor
Reset cursor when translate interaction is removed or deactivated
2017-04-13 20:25:20 -06:00
Frederic Junod
72bb310386 Move eslint globals to to test/.eslintrc 2017-04-11 12:36:39 +02:00
Thomas Chandelle
051d5651a5 Complete previous cursor tests
"respects existing cursor value" wasn't actually testing anything
2017-04-11 09:15:02 +02:00
Thomas Chandelle
5c23123b6d Reset cursor when translate interaction is removed or deactivated 2017-04-11 09:15:02 +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
0764be77c4 Failing test for "Circle Modification" 2017-02-15 09:46:51 +01:00
Andreas Hocevar
6a9cbf11f3 Add tests 2017-02-06 14:45:54 -05:00
Thomas Chandelle
8a440b0c20 Listen only to change event triggered by the feature
ol.Feature catch change event from its geometry and trigger a change
event itself. ol.Feature will also trigger change event when its
geometryName has changed
2017-01-20 13:01:28 +01:00
Thomas Chandelle
395d833dd6 Constrain the center in zoomByDelta 2017-01-06 09:31:00 +01:00
Thomas Chandelle
8956a492eb Remove unused map parameter from several interaction methods 2017-01-05 15:34:47 +01:00
Tim Schaub
c6c105b62f Shared module for map browser event type enum 2016-12-27 13:48:50 -07:00
Tim Schaub
69d345171e Private enum for mousewheel mode 2016-12-27 13:32:24 -07:00
Frederic Junod
c6fe60bcd7 Don't reset the css cursor if it's not needed 2016-12-16 15:57:41 +01:00
Frederic Junod
392cbcc138 Enforces spacing around commas 2016-12-14 13:42:47 +01:00
Marc Jansen
f795019215 Merge pull request #6075 from tchandelle/modify_stride
Keep the other dim from the original segment when modifying vertex
2016-12-07 19:22:59 +01:00
Tim Schaub
489d37d384 Use representative wheel delta values in the tests 2016-11-12 12:07:57 -07:00
Andreas Hocevar
2d711a59b5 Merge pull request #6099 from tchandelle/modify-test
Modify interaction tests : check for change events
2016-11-10 15:53:58 +01:00
Andreas Hocevar
61df657cfb Merge pull request #6069 from tchandelle/translate-no-features
If there is no features option, all features will be translated.
2016-11-10 13:32:52 +01:00
Thomas Chandelle
5d214567ab Add test for Translate interaction, without features option 2016-11-09 14:36:25 +01:00
Thomas Chandelle
af82f972da Check for middle events
Most of the times, there is only 3 events. This loop is supposed to
check the middle one, but never does;
2016-11-09 14:25:33 +01:00
Thomas Chandelle
5d61218134 Keep the other dim from the original segment when modifying vertex 2016-11-04 09:47:30 +01:00
Andreas Hocevar
fb1a8335ac Do not draw circle when pointer not moved 2016-11-03 12:59:36 +01:00
Frederic Junod
e0a9910d4e Add new timeout option to ol.interaction.MouseWheelZoom
And remove the `ol.MOUSEWHEELZOOM_TIMEOUT_DURATION` define.
2016-10-28 09:07:42 +02:00
Björn Harrtell
9d5453a927 Test to validate sketch polygon 2016-10-27 18:56:11 +02:00
Frederic Junod
e853f1ed2a Remove the vertex on ol.interaction.Modify deactivation 2016-10-19 11:06:29 +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
simonseyock
7392db0f57 Fixed issue with multi option of ol.interaction.Select 2016-09-13 13:29:44 +02:00
Frederic Junod
c6a9bc66d6 Rename ol.interaction.ModifyEvent to ol.interaction.Modify.Event 2016-09-07 16:55:47 +02:00
Tim Schaub
651c6959ab Remove ol.global 2016-09-01 23:13:00 -06:00
Bart van den Eijnden
fe6fe702b2 Merge pull request #5290 from tbarsballe/bboxinteraction
Add extent interaction
2016-08-27 09:08:28 +02:00