Commit Graph

28965 Commits

Author SHA1 Message Date
Andreas Hocevar
38585d6945 Merge pull request #11800 from ahocevar/remove-last-point
Fix removeLastPoint when removing last point
2020-12-08 16:23:30 +01:00
Andreas Hocevar
ecb9778fbf Set sketch cursor to last appended coordinate 2020-12-08 16:16:14 +01:00
mike-000
884799db20 Add ScaleLine (based on projection units) 2020-12-08 14:01:20 +00:00
Andreas Hocevar
0bd04eafe0 Pass around pixels/coords to fix appendCoordinates 2020-12-08 14:52:36 +01:00
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
mike-000
2bb8aa0f32 Better default when no transform available
Do not use identityTransform for EPSG:4326 transform unless units are degrees
2020-12-07 17:32:08 +00:00
dependabot-preview[bot]
5af1a1dee7 Bump yargs from 16.1.1 to 16.2.0
Bumps [yargs](https://github.com/yargs/yargs) from 16.1.1 to 16.2.0.
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/compare/v16.1.1...v16.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-07 07:22:34 +00:00
dependabot-preview[bot]
64120ddde0 Bump worker-loader from 3.0.5 to 3.0.6
Bumps [worker-loader](https://github.com/webpack-contrib/worker-loader) from 3.0.5 to 3.0.6.
- [Release notes](https://github.com/webpack-contrib/worker-loader/releases)
- [Changelog](https://github.com/webpack-contrib/worker-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/worker-loader/compare/v3.0.5...v3.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-07 07:20:54 +00:00
dependabot-preview[bot]
b08608b2db Bump eslint from 7.14.0 to 7.15.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.14.0 to 7.15.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.14.0...v7.15.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-07 07:19:37 +00:00
dependabot-preview[bot]
a25c2ce548 Bump rollup from 2.34.0 to 2.34.2
Bumps [rollup](https://github.com/rollup/rollup) from 2.34.0 to 2.34.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.34.0...v2.34.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-07 07:17:17 +00:00
Andreas Hocevar
62c7853ed7 Merge pull request #11769 from ahocevar/modify-dx
Modify interaction developer experience improvements
2020-12-07 00:11:36 +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
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
d0a1c10cec Add example for Modify with hit detection 2020-12-06 16:51:14 +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
MoonE
ea91d41be9 Merge pull request #11803 from MoonE/modify-fix-vertex-insertion
Modify fix vertex insertion
2020-12-06 16:47:41 +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
190b20ebce Add vertex insertion test for modify interaction 2020-12-06 15:43:14 +01:00
MoonE
1dddb3f58a Merge pull request #11783 from MoonE/hitdetect-indexes
Cache hit detect indexes and check closest pixels first.
2020-12-03 21:24:35 +01:00
Andreas Hocevar
77e6c3a4ab Merge pull request #11791 from ahocevar/pepjs-readme
Now that pepjs was updated, we can point to the official package
2020-12-02 08:24:36 +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
Andreas Hocevar
f3a7703194 Hit tolerance priority example 2020-12-01 20:20:04 +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
810cdd9865 Now that pepjs was updated, we can point to the official package 2020-12-01 16:24:54 +01:00
Andreas Hocevar
aec4c60c4a Merge pull request #11786 from openlayers/dependabot/npm_and_yarn/rollup-2.34.0
Bump rollup from 2.33.3 to 2.34.0
2020-12-01 15:48:31 +01:00
Frédéric Junod
4a985f43c5 Merge pull request #11790 from openlayers/attrib_swisstopo_wms
Fix attributions links for WMS layers from swisstopo
2020-12-01 15:29:29 +01:00
Frederic Junod
6d04c360be Fix attributions links for WMS layers from swisstopo 2020-12-01 13:48:32 +01:00
Andreas Hocevar
dcaa7096bb Merge pull request #11787 from openlayers/dependabot/npm_and_yarn/babel-loader-8.2.2
Bump babel-loader from 8.2.1 to 8.2.2
2020-12-01 10:09:30 +01:00
Andreas Hocevar
4c9fb319aa Merge pull request #11785 from openlayers/dependabot/npm_and_yarn/babel/core-7.12.9
Bump @babel/core from 7.12.7 to 7.12.9
2020-12-01 10:08:06 +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
dependabot-preview[bot]
a41576187d Bump babel-loader from 8.2.1 to 8.2.2
Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.2.1 to 8.2.2.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel-loader/compare/v8.2.1...v8.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-30 07:12:31 +00:00
dependabot-preview[bot]
a0cefa9525 Bump rollup from 2.33.3 to 2.34.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.33.3 to 2.34.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.33.3...v2.34.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-30 07:11:22 +00:00
dependabot-preview[bot]
4141549a15 Bump @babel/core from 7.12.7 to 7.12.9
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.7 to 7.12.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.9/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-30 07:10:24 +00: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
fe36ff4ee3 Clarify change in changelog 2020-11-29 00:02:39 +01:00