Commit Graph

124 Commits

Author SHA1 Message Date
Tim Schaub
4a4872bbe5 Declare global 2016-08-12 10:53:48 -06:00
Tim Schaub
004cf15222 Add some missing test requires 2016-08-12 10:53:48 -06:00
Tim Schaub
c203f6a841 Remove unused requires from tests 2016-08-08 09:58:11 -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
Andreas Hocevar
34d5cc228e Merge pull request #5429 from probins/testenums
Remove enums from tests
2016-07-15 09:12:58 +02:00
Frederic Junod
460ea4e809 Return if a vertex was removed in ol.interaction.Modify#removeVertex_ 2016-07-04 17:09:01 +02:00
Frederic Junod
b562f4d68a Don't dispatch select event if a selected feature is selected again 2016-06-29 15:03:42 +02:00
Frederic Junod
e7c2d9ab32 Don't dispatch select event if no feature is selected or deselected 2016-06-29 15:03:42 +02:00
Frederic Junod
4bf1f56405 Add missing semicolon 2016-06-09 15:39:46 +02:00
Peter Robins
06fd92353b Remove enums from tests 2016-06-03 11:10:46 +00:00
Frederic Junod
b49546d2af Add a 'condition' option to ol.interaction.Modify 2016-05-10 17:17:17 +02:00
giohappy
d49bcdeedc Expose removeVertex_ as removePoint 2016-04-28 12:47:46 +02:00
Andreas Hocevar
c3217e8d30 Merge pull request #5044 from fblackburn/snapinteraction
Snap interaction now handle feature without geometry properly
2016-04-27 14:25:17 +02:00
Andreas Hocevar
c11e95099c Fix feature-layer association on replaced selections 2016-04-27 08:13:45 +02:00
Francois Blackburn
9186d1fbda Snap interaction now handle feature without geometry properly 2016-04-26 14:14:47 -04:00
giohappy
394ef94fd3 Fix finishCondition test 2016-04-22 23:17:21 +02:00
giohappy
ead6063170 make lint happy with drawinteraction.test.js 2016-04-22 15:16:11 +02:00
giohappy
2076ef02ca Add test for finishCondition 2016-04-22 15:07:59 +02:00
Nicholas Latham
cd6494149b Remove goog.global (#5178)
* Remove goog.global

* Correct externs location

* Use Function('return this')

* Remove global externs
2016-04-07 23:36:48 +02:00
Renaud Michaëlis
53a9341ef0 Allow to delete the starting or ending vertex
* Allow to delete the starting or ending vertex

* Test if starting and ending vertex are removed
2016-04-06 13:47:37 +02:00
drnextgis
d41bfde25d snap to vertices or edges 2016-03-21 16:19:36 +06:00
drnextgis
7b1e92580d zooming out option for ol.interaction.DragZoom 2016-03-16 11:47:18 +06:00
Tim Schaub
ae4d8195c0 Remove use of goog.dispose() 2016-03-02 15:44:06 -07:00
Frederic Junod
edf2096b1b Remove use of goog.style.getClientPosition
Use Element.getBoundingClientRect() instead.
2016-02-25 08:36:40 +01:00
Andreas Hocevar
81750ea6b1 Merge pull request #3453 from bjornharrtell/set-multi
Consider multi in add/remove/toggle select logic
2016-02-22 09:49:00 +01:00
tsauerwein
1e8bbb0ae4 Add target property to drag&drop interaction 2016-02-22 09:25:30 +01:00
Björn Harrtell
f77480ec28 Add tests excercising the add/remove/toggle select logic with and without multi 2016-02-17 13:15:45 +01:00
Tim Schaub
03761642ed Correct indentation 2016-02-15 16:39:56 -07:00
Tim Schaub
72ea0ecfd8 Remove remaining goog.object use from tests 2016-02-04 06:54:45 -07:00
Andreas Hocevar
ac1d7572e4 Add tests for scroll zoom 2016-02-03 11:19:38 +01:00
Andreas Hocevar
ec6f2e575b Add tests for keyboard pan and zoom 2016-02-03 11:19:38 +01:00
Andreas Hocevar
8b171d3ca6 Add tests for file dragging 2016-02-03 11:19:38 +01:00
Andreas Hocevar
c51d717657 Refactor event manager to remove memory leaks 2016-02-03 11:19:38 +01:00
Andreas Hocevar
3f2d79b7fe Replace goog.events.Event/EventTarget system with our own
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Andreas Hocevar
ecb2a42900 Properly detect feature on unmanaged layer for toggle selection 2016-01-30 18:13:48 +01:00
Tim Schaub
f627f7679b Valid JSDoc annotations 2016-01-11 18:56:07 -08:00
Tim Schaub
3f23dfb87b Indentation 2016-01-11 18:56:07 -08:00
Tim Schaub
aac1d921c7 Unused variables 2016-01-11 18:56:07 -08:00
Tim Schaub
179b241aec Declare variables before assignment 2016-01-11 18:56:07 -08:00
Éric Lemoine
279eae1dba Do not ignore layer filter for unmanaged layers
PR #3883 made `forEachFeatureAtPixel` ignore unmanaged layers. This commit reverts that change.
2015-11-30 17:53:19 +01:00
Andreas Hocevar
a8cd6b735f Fix select interaction regression caused by #4391 2015-11-18 11:57:18 +01:00
Andreas Hocevar
d968f32456 Exclude unmanaged layers from selection 2015-11-09 09:45:21 +01:00
Tim Schaub
d5c7f805ab Unregister postrender listener in tests 2015-11-01 09:03:23 -07:00
Andreas Hocevar
8daff341d0 Update after ol.interaction.Select changes 2015-10-28 10:29:03 +01:00
Andreas Hocevar
7a070dd859 Use DOM instead of map canvas for ol.render.Box 2015-10-15 17:34:16 +02:00
jonataswalker
04c16106cd Add unit test to ol.interaction.Select#getLayer 2015-10-08 16:18:33 +02:00
Andreas Hocevar
dc0c0877d7 Recover from bad merge conflict resolution in #4036 2015-10-08 15:18:11 +02:00
Andreas Hocevar
46a1140583 Merge pull request #4036 from alvinlindstam/fix-modify-events
Fix modify interaction event order
2015-10-08 12:17:57 +02:00
Frederic Junod
f49e82ade1 Remove use of goog.array.filter 2015-09-29 10:54:55 +02:00