Andreas Hocevar
d31abd2f77
Sensible defaults
2021-02-06 12:04:31 +01:00
Andreas Hocevar
bf90ce2789
Add snapToPointer option
2021-02-03 10:52:10 +01:00
Andreas Hocevar
ed3c45d3f8
Fix tolerance typo
2020-12-06 22:12:13 +01:00
Andreas Hocevar
b6eb429f77
Always drag using pointer location, not vertex location
2020-12-06 18:11: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
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
Maximilian Krög
190b20ebce
Add vertex insertion test for modify interaction
2020-12-06 15:43:14 +01:00
Maximilian Krög
bf33bd0703
Add Modify test for identical line segments of same geometry
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
Tim Schaub
b4e51ed841
Merge pull request #10343 from mike-000/patch-10
...
Correct interactions with circle geometries when using user coordinates
2020-04-02 11:06:48 -06:00
Matt Walker
5ce532e3e4
Mock PointerEvent in tests to include target
...
The `target` Event property is readonly as it is set internally when an
event is dispatched. This change uses a plain object with the essential
properties that a PointerEvent has which is sufficent for map event handling
2020-01-13 10:46:40 +00: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
6bada6ab98
Add test modifying circle with snap enabled
2019-11-23 16:11:27 -05:00
Tim Schaub
d2b25533c2
Use the same spelling used elsewhere
2019-09-29 07:37:45 -05:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
ahocevar
74e8e013cf
Use pepjs instead of our own pointerevent polyfill
2019-08-29 18:58:53 +02:00
ahocevar
6cabb9dd0b
Remove drag segments of removed features
2018-12-05 12:02:35 +01:00
ahocevar
8ab1589f9a
Add getOverlay method to access sketch and selection layers
2018-08-15 10:59:38 +02:00
ahocevar
c74b9c1d55
Do not prevent default on pointermove
...
Instead, only prevent default on handled pointerdown events. This makes
the `focus` condition work with interactions that involve dragging on
touch devices.
2018-07-31 08:33:15 +02:00
Tim Schaub
3f944ef76e
Remove static members from Modify
2018-02-25 09:18:44 -07:00
Marc Jansen
6e764a20b3
Import events conditions explicitly
2018-02-05 20:36:42 +01:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
8cba211ecd
Rename _ol_pointer_PointerEvent_ to PointerEvent
2018-01-11 13:44:45 -07:00
Tim Schaub
682b4402a0
Rename _ol_interaction_Modify_ to Modify
2018-01-11 12:10:54 -07:00
Tim Schaub
176021e188
Rename _ol_Collection_ to Collection
2018-01-11 12:06:58 -07:00
Tim Schaub
ca6ea355e6
Rename _ol_source_Vector_ to VectorSource
2018-01-10 09:36:28 -07:00
Tim Schaub
45c6e43b42
Rename _ol_layer_Vector_ to VectorLayer
2018-01-10 09:36:23 -07:00
Tim Schaub
1c1f008238
Rename _ol_View_ to View
2018-01-10 09:35:42 -07:00
Tim Schaub
22fce4f97b
Rename _ol_Feature_ to Feature
2018-01-10 09:35:35 -07:00
Ron Young
9fa59d0735
rename map in tests
2017-12-21 23:11:42 -07:00
Marc Jansen
ec64789940
Rename _ol_MapBrowserPointEvent_ to MapBrowserPointerEvent
2017-12-15 16:18:32 +01:00
Tim Schaub
ac7985a5ad
Rename _ol_geom_Circle_ to Circle
2017-12-14 08:57:52 -07:00
Tim Schaub
c502f016f7
Rename _ol_geom_Polygon_ to Polygon
2017-12-14 08:56:12 -07:00
Tim Schaub
f7b3876c1b
Rename _ol_geom_LineString_ to LineString
2017-12-14 08:54:53 -07:00
Tim Schaub
eadec38ae2
Rename _ol_geom_Point_ to Point
2017-12-14 08:49:10 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Tim Schaub
a3e3e99baa
Get rid of useless test exports
2017-08-17 15:16:58 -04:00
Tim Schaub
46bcce464f
Add missing requires to tests
2017-08-16 13:43:28 -04:00
Tim Schaub
86eacefe19
Allow modify interaction to be configured with a source
2017-08-09 13:35:25 -06:00
Marc Jansen
d0ef05977b
Autofix indentation issues (eslint --fix)
2017-06-19 11:58:00 +02:00
Frederic Junod
ff91974345
Add insertVertexCondition to ol.interaction.Modify options
2017-05-09 15:34:43 +02:00
Thomas Chandelle
0764be77c4
Failing test for "Circle Modification"
2017-02-15 09:46:51 +01:00
Andreas Hocevar
6a9cbf11f3
Add tests
2017-02-06 14:45:54 -05:00
Marc Jansen
f795019215
Merge pull request #6075 from tchandelle/modify_stride
...
Keep the other dim from the original segment when modifying vertex
2016-12-07 19:22:59 +01:00