Andreas Hocevar
ec53d4fc57
Remove no longer needed checks for coordinates.length
2020-12-08 14:52:35 +01:00
Andreas Hocevar
651c1aa6c4
Fix removeLastPoint when removing last point
2020-12-08 14:52:35 +01:00
Andreas Hocevar
b6eb429f77
Always drag using pointer location, not vertex location
2020-12-06 18:11:15 +01:00
Andreas Hocevar
0e15720f2e
Make use of the Modify interaction's overlay source
2020-12-06 17:02:04 +01:00
Andreas Hocevar
44e054d528
When hit detected, only consider hit node
2020-12-06 16:51:15 +01:00
Andreas Hocevar
630a72f222
Fix API docs
...
Co-authored-by: MoonE <maxi_kroeg@web.de >
2020-12-06 16:51:15 +01:00
Andreas Hocevar
1473731854
Use existing collection
2020-12-06 16:51:15 +01:00
Andreas Hocevar
18d15879bf
Reuse featuresBeingModified_ collection
2020-12-06 16:51:15 +01:00
Andreas Hocevar
128d20abf3
Simpler API with hitDetection option
2020-12-06 16:51:15 +01:00
Andreas Hocevar
9b31deb38f
Simplify API and code
2020-12-06 16:51:14 +01:00
Andreas Hocevar
db6eb040d2
Improve documentation
2020-12-06 16:51:14 +01:00
Andreas Hocevar
314724d880
Add geometries property to vertex feature
2020-12-06 16:51:14 +01:00
Andreas Hocevar
ec9dde88f9
Add features property to vertex feature
2020-12-06 16:51:14 +01:00
Andreas Hocevar
6874bfaaef
Report features actually being modified, not all
2020-12-06 16:51:13 +01:00
Andreas Hocevar
b3bcfb5b41
Modify with hit detection support
2020-12-06 16:51:13 +01:00
Maximilian Krög
c4dd6e6b04
Fixes Modify vertex insertion with duplicate segments
...
If one feature has duplicate segments it prevented insertion for other
features with the same segment.
2020-12-06 15:43:18 +01:00
Maximilian Krög
23dc768c2e
Order callback calls by distance to click position
...
All callback calls for hits with a tolerance > 0 are queued and
called ordered by distance after all hits are detected.
2020-12-01 23:21:59 +01:00
Maximilian Krög
4546eff66e
Also use hitTolerance to select tiles to search
2020-12-01 20:21:15 +01:00
Maximilian Krög
cde2dac19f
Skip executor groups when tile does not contain coordinates
2020-12-01 20:21:13 +01:00
Maximilian Krög
c076d273e7
Cache hit detect indexes and check closest pixels first.
2020-12-01 20:19:58 +01:00
Andreas Hocevar
8ceaadc7c8
Merge pull request #11781 from ahocevar/hitdetect-geometry
...
Pass geometry to forEachFeatureAtPixel callback
2020-12-01 09:59:43 +01:00
Andreas Hocevar
512642f8e2
Document geometry argument of the feature callback for internal use
2020-11-29 00:39:55 +01:00
Andreas Hocevar
8cc78acde9
Merge pull request #11778 from ahocevar/hit-tolerance-pixel-ratio
...
No need to adjust hitTolerance for pixel ratio twice
2020-11-29 00:09:23 +01:00
Andreas Hocevar
4e885181b5
Fix forEachFeatureAtPixel apidoc output
2020-11-28 23:55:25 +01:00
Andreas Hocevar
5659397b39
No need to adjust hitTolerance for pixel ratio
2020-11-28 09:18:17 +01:00
Andreas Hocevar
950894c542
Merge pull request #11780 from M393/dragbox-add-cancel-event
...
Add a cancel event to the DragBox interaction
2020-11-27 23:53:54 +01:00
Maximilian Krög
b93a57156c
Add a cancel event to the dragbox interaction
2020-11-27 15:02:39 +01:00
Andreas Hocevar
28aaa2e0d3
Pass geometry to forEachFeatureAtPixel callback
2020-11-27 13:43:28 +01:00
mike-000
c0875e38e7
Restore Mode.CIRCLE
2020-11-27 11:42:51 +00:00
Andreas Hocevar
7b5f53753b
Merge pull request #11753 from mike-000/patch-15
...
Use Mode.LINE_STRING in Draw interaction for Circle geometries
2020-11-25 13:47:17 +01:00
mike-000
919c711756
New function createOrUpdateCustomSketchLine_
2020-11-25 12:06:34 +00:00
mike-000
8898d540fa
New function createOrUpdateCustomSketchLine_
...
New function for duplicated code handling sketch line for custom polygons
2020-11-25 11:59:32 +00:00
Andreas Hocevar
ab0b24b0da
Merge pull request #11767 from mike-000/patch-13
...
Improve documentation of geometry rotation
2020-11-25 00:00:39 +01:00
mike-000
f8df533cb0
Use Mode.LINE_STRING for Circle geometries
...
Make predefined geometry functions compatible with removeLastPoint
Add undo to example
Make geometry function for Star compatible with use of removeLastPoint
Additional createRegularPolygon tests
2020-11-24 10:39:28 +00:00
Andreas Hocevar
20ccdc56b8
Merge pull request #11755 from ahocevar/view-padding
...
Add padding option for View
2020-11-24 09:10:57 +01:00
Andreas Hocevar
a0604c9cc3
Use new Geolocation types
2020-11-23 17:28:31 +01:00
mike-000
1c529a9e2f
document rotation direction
2020-11-23 14:41:30 +00:00
mike-000
540e5faa74
document rotation direction
2020-11-23 14:41:19 +00:00
mike-000
35266c47a3
document fromCircle angle direction and 0
2020-11-23 14:35:40 +00:00
Andreas Hocevar
231390a1f0
Handle center constraint properly
2020-11-23 13:12:32 +01:00
Andreas Hocevar
0e2d17b9c6
Add padding option for View
2020-11-22 18:52:46 +01:00
Andreas Hocevar
19aeed3e3c
Fix typo that prevents Rotate icon from indicating the view rotation
2020-11-22 10:35:31 +01:00
Andreas Hocevar
dd95f56e26
Merge pull request #11719 from ahocevar/less-aggressie-3857-clamping
...
Clamp EPSG:3857 y to lowest/highest possible value instead of validity extent
2020-11-19 13:51:47 +01:00
Andreas Hocevar
698fca2d56
Merge pull request #11737 from ahocevar/esrijson-wkid
...
Write the correct SRS code in EsriJSON
2020-11-19 13:50:56 +01:00
Andreas Hocevar
e44f23f806
Merge pull request #11749 from ahocevar/snap-tolerance
...
Document that snapTolerance must be greater than 0
2020-11-18 12:45:03 +01:00
mike-000
d42b7d4fba
Update TMS tileUrlFunction example
2020-11-18 11:11:06 +00:00
mike-000
d4f7b40b95
Update TMS tileUrlFunction example
2020-11-18 10:44:41 +00:00
Andreas Hocevar
9885b79509
Document that snapTolerance must be greater than 0
2020-11-18 10:44:41 +01:00
Andreas Hocevar
f054971bae
Merge pull request #11739 from boeckMt/fix-layer-at-pixel-image
...
Fix: Check for layer extent in CanvasLayerRenderer.getDataAtPixel
2020-11-16 14:53:45 +01:00
Mathias Boeck
a92bc2755d
Check if render pixel is in the layer extent
2020-11-16 14:13:21 +01:00