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
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Éric Lemoine
0bc8858760
Add a "features" option to ol.interaction.Select
2015-09-22 17:02:14 +02:00
Tim Schaub
6617bdd57f
Drag zoom interaction tests
2015-09-09 10:49:08 -06:00
Éric Lemoine
95030cd838
Add ol.interaction.Draw#extend
...
This commit adds an `extend` method to the draw interaction. This method makes it possible to extend (continue drawing) an existing line string feature. It only works on line string features, where this functionality makes the most sense.
Here's an example on how to use `extend`:
```js
var vectorSource = vectorLayer.getSource();
vectroSource.removeFeature(feature);
drawInteraction.extend(feature);
```
2015-09-02 17:21:10 +02:00
Alvin Lindstam
cb8e4e0ee7
Fix miswritten test
2015-08-23 23:35:08 +02:00
Alvin Lindstam
c5fe7df2e4
Fix modify event trigger order, should trigger modifystart before any modification and modifyend last.
2015-08-23 23:35:07 +02:00
Éric Lemoine
5f7e6ac61a
Make Modify interaction listen to feature changes
...
This commit makes the Modify interaction modify its segment data when the candidate features change.
2015-08-18 16:39:49 +02:00
Christopher S. Case
338d0570fd
Add a Translate interaction
...
This allows features to be moved around the map. It works much like the Modify interaction, however it's significantly simpler. It uses the geometry's underlying `translate` function.
2015-08-18 11:17:01 +02:00
Tim Schaub
571f3f30a4
Regression test for shared vertex deletion
2015-08-03 23:07:19 -06:00
Tim Schaub
405a8db075
Merge pull request #3946 from Turbo87/modify
...
Fix vertex deletion for Modify interaction on mobile devices.
2015-08-03 21:47:41 -06:00
Frederic Junod
2143eebd30
Fix drawstart and drawend events when drawing a point
...
The previous behavior was to fire a `drawstart` on the first `mousemove`.
2015-08-03 13:40:56 +02:00
Frederic Junod
3364dbb46e
Remove count argument from called function
...
This function takes no arguments, use the `callCount` property instead.
2015-08-03 10:02:21 +02:00
Tobias Bieniek
7a34d22b37
interaction/modify: Add missing goog.require() to test
2015-08-01 22:09:32 +02:00
Tobias Bieniek
968c8aa34e
interaction/modify: Replace lastNewVertexPixel with ignoreNextSingleClick
...
The previous approach did not work on mobile devices where no `pointermove`
event is sent except from dragging.
Logic now is: Upon vertex creation due to `pointerdown` we will ignore
the next `singleclick` event unless there is a `pointerdrag` event, which will
not lead to a `singleclick` event following the vertex creation.
Resolves #3935
2015-08-01 22:00:41 +02:00
Tobias Bieniek
bf9156cbeb
interaction/modify: Adjust simulated events
...
This is exactly matching the event sent by Chrome now
2015-08-01 21:03:18 +02:00
Tobias Bieniek
bafd8548d1
interaction/modify: Add tests for deleteCondition option
2015-08-01 20:52:31 +02:00
Tobias Bieniek
22ca08179d
interaction/modify: Use expect().to.be() assertion
...
... instead of expect(a === b).to.be.ok()
2015-08-01 20:20:06 +02:00
Björn Harrtell
c69ba6a3dd
Create vertex on boundary single click
2015-07-03 10:26:38 +02:00
Éric Lemoine
b8cb1fe795
Merge pull request #3766 from elemoine/draw-click-tolerance
...
Add a clickTolerance option to the Draw interaction
2015-06-16 10:06:01 +02:00
Éric Lemoine
e99f43af8d
Add a clickTolerance option to the Draw interaction
2015-06-15 15:32:34 +02:00
Andreas Hocevar
53d5d8c1d9
Get rid of ol.FeatureOverlay
...
This also introduces a wrapX option to the Draw, Modify and Select
interaction.
2015-06-09 15:44:31 +02:00