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
Stéphane Brunner
889b6a9f43
Removes unnecessary type cast
2019-05-27 11:34:33 +02:00
Frederic Junod
0b53a3229b
Remove unneeded type cast
2019-02-04 09:58:49 +01:00
Andreas Hocevar
6967e5b60b
Merge pull request #9070 from ludvigeriksson/remove-point-return-value
...
Modify.removePoint returns true only when a vertex was removed
2018-12-18 21:57:02 +01:00
Ludvig Eriksson
412d9a9713
Modify.removePoint returns true only when a vertex was removed
2018-12-17 16:02:16 +01:00
Niklas Alt
4bc9216e41
Add ': void' to non returning functions (error TS7014)
2018-12-06 19:57:45 +01:00
ahocevar
6cabb9dd0b
Remove drag segments of removed features
2018-12-05 12:02:35 +01:00
Ludvig Eriksson
a50fda5ac8
Call insertVertexCondition only when a vertex acually can be inserted
2018-12-04 09:55:31 +01:00
Frederic Junod
6d608c361a
Simplify import path in ol/interaction/
2018-11-05 16:26:45 +01:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02:00
Kevin Schmidt
942a0976be
Move interaction event handlers to class methods
2018-10-03 06:30:09 -06:00
Kevin Schmidt
25cf54193a
Fix type check errors in ol/interaction/Modify
2018-10-02 08:31:03 -06:00
Frederic Junod
81bab31efb
Remove extra imports in jsdoc
...
The symbols are already imported (es6 import)
2018-09-08 11:01:02 +02:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +02:00