Simon Seyock
d914006d51
Add signatures for once.
2021-07-10 11:28:49 +02:00
Simon Seyock
1870a64984
Add CombinedOnSignature.
2021-07-10 11:28:49 +02:00
Simon Seyock
e9a161740a
controls and interactions.
2021-07-10 11:28:48 +02:00
Simon Seyock
c8f43050c4
Revert "Merge pull request #12416 from ahocevar/eventtype-generics"
...
This reverts commit b6c143deb2 , reversing
changes made to 7777821df5 .
2021-07-10 11:28:46 +02:00
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
Andreas Hocevar
a478377861
Merge pull request #12237 from M393/fix-modify-hitdetection
...
Fix Modify interaction with hitDetection
2021-06-21 12:36:01 +02:00
Andreas Hocevar
b6c143deb2
Merge pull request #12416 from ahocevar/eventtype-generics
...
Use generics to limit event types in on(), once() and un()
2021-06-21 09:36:25 +02:00
Andreas Hocevar
7777821df5
Merge pull request #12408 from ahocevar/modify-no-insert
...
Do not fire modifystart when nothing is being modified
2021-06-21 08:05:53 +02:00
Andreas Hocevar
018ad97f25
Use generics to limit event types in on(), once() and un()
2021-06-20 22:25:47 +02:00
Tim Schaub
f798902ecd
Fix JSDoc generated links
2021-06-17 21:54:07 -06:00
Andreas Hocevar
94a7cdba10
Do not fire modifystart when nothing is being modified
2021-06-17 11:08:03 +02:00
Maximilian Krög
2ed509a20d
Support RenderFeature in Modify with hitDetection
2021-06-17 11:03:29 +02:00
Maximilian Krög
7c41748654
SegmentData.segment is not an Extent
2021-06-17 11:03:29 +02:00
Maximilian Krög
4e9b89c358
Fix Modify interaction with hitDetection
...
Hit detection should ignore any RenderFeatures and features not in the configured
source / collection.
2021-06-17 11:02:58 +02:00
Simon Seyock
2b57584180
fix prettier linting problems
2021-03-09 09:08:27 +01:00
Andreas Hocevar
7789bc5b15
Report all features being modified
2021-02-08 20:44:19 +01:00
Andreas Hocevar
a7b92cba4d
Merge pull request #11978 from ahocevar/snap-delta-optional
...
Add snapToPointer option
2021-02-06 12:57:17 +01:00
Andreas Hocevar
d31abd2f77
Sensible defaults
2021-02-06 12:04:31 +01:00
Simon Seyock
2ad5789797
Add descriptions for properties.
2021-02-04 18:19:33 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Andreas Hocevar
bf90ce2789
Add snapToPointer option
2021-02-03 10:52:10 +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
6a5c3bde62
Do not insert more than one point per geometry at once
2020-09-29 10:52:35 +02:00
Maximilian Krög
edb3b5f4fd
The vertex is always the same, no need to store it with the segment
2020-09-29 10:52:35 +02:00
Michał Zielański
3d9dfe2654
By modifying the common vertex, not all geometries were changed when the geometries were aggregated in the collection
2020-06-29 10:48:17 +02:00
Andreas Hocevar
33ce206bab
Get rid of MapBrowserPointerEvent
2020-05-10 16:54:34 +02:00
Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod
da8ef43db7
Remove all inheritDoc tags from src/ol/interaction
2020-04-03 07:52:51 +02:00
mike-000
9d8609dd08
Modify and snap to circle in user coordinates
...
Correct modify interaction at center and at drawn circle circumference
Correct snap interaction at drawn circle circumference
Test circle geometry in a user projection
2019-12-13 16:40:39 +00:00
Greg Gianforcaro
93d3ddb033
Fix modifying circle geometries
...
The Snap interaction may have altered the event coordinate, so Modify
should use the event coordinate whenever available.
Resolves #10316
2019-11-23 00:36:42 -05:00
Andreas Hocevar
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
Tim Schaub
07678d960a
User coordinates during snapping
2019-09-27 11:55:48 +02:00
Tim Schaub
3c7b129106
User coordinates during drawing
2019-09-26 19:29:19 +02:00
Tim Schaub
e0d24d3af0
User coordinates during modification
2019-09-26 18:46:55 +02:00
Tim Schaub
6ec69abdf6
Fewer type casts, minor changes
2019-09-26 16:15:08 +02:00
Tobias Kohr
d4c1589a01
Seperate internal and API methods for the map
2019-09-24 17:58:56 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00