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
Andreas Hocevar
aa260f800e
Merge pull request #4450 from ahocevar/fix-select
...
Fix select interaction regression caused by #4391
2015-11-19 18:20:04 +01:00
Frederic Junod
5ead77bcd1
Remove extra space in type annotation
2015-11-19 10:03:42 +01:00
Andreas Hocevar
a8cd6b735f
Fix select interaction regression caused by #4391
2015-11-18 11:57:18 +01:00
Frederic Junod
dfbe7447c9
Test number property with !== undefined
...
Fixes #4424
2015-11-16 09:39:35 +01:00
Andreas Hocevar
d968f32456
Exclude unmanaged layers from selection
2015-11-09 09:45:21 +01:00
Andreas Hocevar
1aea2c2b0c
Pass null as forEachFeatureAtPixel layer arg for unmanaged layers
2015-11-09 09:45:21 +01:00