Frederic Junod
e099dcd9a9
Simplify ol.interaction.KeyboardPan#defaultCondition_
...
No need to invoke the function with 'call'
2016-04-07 11:44:23 +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
Björn Harrtell
44e04be67f
Get rid of goog.functions
2016-04-01 10:32:15 +02:00
Frederic Junod
e126df11e7
Remove use of goog.math.Vec2
2016-03-23 14:16:20 +01:00
drnextgis
d41bfde25d
snap to vertices or edges
2016-03-21 16:19:36 +06:00
drnextgis
658a2b317e
correct way to determine freehand mode is enabled
2016-03-18 11:10:27 +06:00
drnextgis
7b1e92580d
zooming out option for ol.interaction.DragZoom
2016-03-16 11:47:18 +06:00
Frederic Junod
edf2096b1b
Remove use of goog.style.getClientPosition
...
Use Element.getBoundingClientRect() instead.
2016-02-25 08:36:40 +01:00
Frederic Junod
e6c2fa52f5
Remove unneeded type cast
2016-02-22 10:02:15 +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
7822f5ce5d
Consider multi in add/remove/toggle select logic
2016-02-17 13:18:06 +01:00
Andreas Hocevar
9f0fefd42d
Hit-detect skipped features, but not on unmanaged layer
2016-02-17 00:54:31 +01:00
Frederic Junod
e7c57ada95
Use olx.format.ReadOptions in ol.interaction.DragAndDrop
...
Don't reproject the geometries in ol.interaction.DragAndDrop; use
the `featureProjection` option in `format.readFeatures`
2016-02-15 09:26:00 +01:00
Frederic Junod
a44e71aad1
Use ol.events.listen instead of ol.Observable#on
...
`ol.Observable#on` may return an array of `ol.events.Key`, `ol.events.listen` always
return a single `ol.events.Key`.
2016-02-04 17:24:29 +01:00
Tim Schaub
e2fe897811
Replace goog.object.getValues() with ol.object.getValues()
2016-02-04 06:54:44 -07:00
Tim Schaub
fd394151fd
Replace goog.object.clear() with ol.object.clear()
2016-02-04 06:54:44 -07:00
Tim Schaub
f10c90bdba
Simpler type for ol.events.Key
...
Instead of having `ol.events.Key` be a listener object or an array of listener objects, it should be less error prone to have it just be a single listener object.
To avoid using too many functions with multiple return types, the `ol.events.*` functions for registering and unregistering listeners no longer accept an array of event types (and only a single key is returned when registering).
To make it convenient for users to register multiple listeners at once, the `observable.on()` method accepts an array of event types. Internally in the library, we should use the less risky `ol.events.listen()`.
2016-02-03 11:19:38 +01:00
Tim Schaub
80df1f5ae8
Move opt_useCapture arg to the end of the list
2016-02-03 11:19:38 +01:00
Andreas Hocevar
6ac3f30c8f
Remove goog.events.MouseWheelEvent and goog.events.MouseWheelHandler
2016-02-03 11:19:38 +01:00
Andreas Hocevar
1a6daa297e
Remove goog.events.KeyHandler
2016-02-03 11:19:38 +01:00
Andreas Hocevar
0f216659f9
Remove goog.fs.FileReader and goog.events.FileDropHandler
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
2fb33ba940
Type fixes and simplifications
2016-02-03 11:41:40 +13:00
Nicholas L
d820b54443
Remove goog.array.equals and goog.array.stableSort
2016-02-03 11:41:39 +13:00
Nicholas L
d1b6a17773
Remove goog.array.extend
2016-02-03 11:41:38 +13:00
Andreas Hocevar
ecb2a42900
Properly detect feature on unmanaged layer for toggle selection
2016-01-30 18:13:48 +01:00
Frederic Junod
b7cbd20b6f
Add missing JSDoc tags
2016-01-25 14:37:45 +01:00
Frédéric Junod
eb395894e1
Revert "Do not render in handleDownEvent"
2016-01-19 15:26:10 +01:00
Tim Schaub
dc820fced4
Merge pull request #4639 from nicholas-l/googBind
...
Remove use of goog.bind and use ES5 .bind.
2016-01-15 09:41:11 -08:00
Nicholas L
db3ad70a3d
Remove use of goog.bind and use ES5 .bind
2016-01-15 22:10:55 +13:00
Philip "digitalfox" Kovac
83e173d91f
Add a 'boxdrag' event to ol.interaction.DragBox. Resolves #4563 .
2016-01-12 17:16:56 -05:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
3cf8618fc7
Prefer single line assignment to 80 character limit
2016-01-11 18:56:08 -08:00
Tim Schaub
59a66c7aaa
Remaining valid-jsdoc corrections
2016-01-11 18:56:08 -08:00
Tim Schaub
fd0e2436da
Always provide a default case for switch
2016-01-11 18:56:08 -08:00
Tim Schaub
54df314936
Consistent curly brace style
2016-01-11 18:56:08 -08:00
Tim Schaub
ec10b661f3
Use block scoping
2016-01-11 18:56:08 -08:00
Andreas Hocevar
5c49e399ce
Merge pull request #4581 from ahocevar/no-render-on-interaction-start
...
Do not render in handleDownEvent
2016-01-07 18:24:39 +01:00
Andreas Hocevar
cde6dce939
Merge pull request #4574 from WeaveTeam/dragbox-config-pr
...
Added boxEndCondition to DragBoxOptions to replace the hardcoded chec…
2016-01-06 11:47:56 +01:00
Frédéric Junod
8c6d9c9e66
Merge pull request #4606 from fredj/ol.DragBoxEvent_MapBrowserEvent
...
Include originating MapBrowserEvent in ol.DragBoxEvent
2016-01-06 09:15:32 +01:00
Philip "digitalfox" Kovac
10e2510f0f
Added boxEndCondition to DragBoxOptions to replace the hardcoded check against DRAG_BOX_HYSTERESIS_PIXELS_SQUARED.
2016-01-05 13:14:30 -05:00
Andreas Hocevar
a65d2d4078
Include own layer in layerFilter and only select unselected features
...
When selecting an already selected feature, it will be on the Select
interaction's featureOverlay_. So we need to include that featureOverlay_
in the layer filter, regardless of what the user set as layer filter.
When in toggle mode, we need to make sure that we only select features that
are not already included in the selection.
2016-01-04 21:55:00 +01:00
Frederic Junod
7a364e0593
Include originating MapBrowserEvent in ol.DragBoxEvent
2016-01-04 13:29:26 +01:00
Andreas Hocevar
552063aeac
Do not render in handleDownEvent
2015-12-18 18:21:32 +01:00
Frederic Junod
aa2838cdcd
Remove use of goog.isNull
2015-12-08 16:05:38 +01:00
Andreas Hocevar
2215f49617
Merge pull request #4472 from ahocevar/layer-filter
...
Do not ignore layer filter for unmanaged layers
2015-12-01 12:01:58 +01: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
Frederic Junod
1ebdba13a6
Remove note about DragZoom and vector support
2015-11-24 17:04:05 +01:00
Frederic Junod
6525bda9fd
Export ol.interaction.Interaction#getMap function
2015-11-23 15:35:36 +01:00