Commit Graph
100 Commits
Author SHA1 Message Date
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 HocevarandMoonE 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
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
Andreas Hocevar f3a7703194 Hit tolerance priority example 2020-12-01 20:20:04 +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
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
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
Andreas Hocevar 4e885181b5 Fix forEachFeatureAtPixel apidoc output 2020-11-28 23:55:25 +01:00
Andreas Hocevar db89da6e15 Update changelog 2020-11-28 09:18:17 +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
Andreas Hocevar 817b77ad54 Merge pull request #11779 from mike-000/patch-16
Restore Mode.CIRCLE in Draw interaction
2020-11-27 23:51:17 +01:00
Andreas Hocevar 28aaa2e0d3 Pass geometry to forEachFeatureAtPixel callback 2020-11-27 13:43:28 +01: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
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
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 cd0db0784f Merge pull request #11762 from openlayers/dependabot/npm_and_yarn/typescript-4.1.2
Bump typescript from 4.0.5 to 4.1.2
2020-11-23 19:35:03 +01:00
Andreas Hocevar a0604c9cc3 Use new Geolocation types 2020-11-23 17:28:31 +01:00
Andreas Hocevar 6d6735fe0a Merge pull request #11764 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-6.3.2
Bump copy-webpack-plugin from 6.3.1 to 6.3.2
2020-11-23 17:12:36 +01:00
Andreas Hocevar 6390c101d1 Merge pull request #11758 from openlayers/dependabot/npm_and_yarn/rollup-2.33.3
Bump rollup from 2.33.2 to 2.33.3
2020-11-23 17:11:50 +01:00
Andreas Hocevar f69e8d8ecd Merge pull request #11761 from openlayers/dependabot/npm_and_yarn/babel/core-7.12.7
Bump @babel/core from 7.12.3 to 7.12.7
2020-11-23 17:10:17 +01:00
Andreas Hocevar dd5cf2810b Merge pull request #11760 from openlayers/dependabot/npm_and_yarn/proj4-2.6.3
Bump proj4 from 2.6.2 to 2.6.3
2020-11-23 16:31:08 +01:00
Andreas Hocevar a9f00c918c Merge pull request #11763 from openlayers/dependabot/npm_and_yarn/eslint-7.14.0
Bump eslint from 7.13.0 to 7.14.0
2020-11-23 16:29:54 +01:00
Andreas Hocevar 64d2893ace Merge pull request #11759 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.12.7
Bump @babel/preset-env from 7.12.1 to 7.12.7
2020-11-23 16:26:34 +01:00
Andreas Hocevar 0116d69fbd Merge pull request #11757 from openlayers/dependabot/npm_and_yarn/marked-1.2.5
Bump marked from 1.2.4 to 1.2.5
2020-11-23 16:25:10 +01:00
Andreas Hocevar 982db9178a Merge pull request #11756 from openlayers/dependabot/npm_and_yarn/puppeteer-5.5.0
Bump puppeteer from 5.4.1 to 5.5.0
2020-11-23 16:24:42 +01: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 9d255be87c Merge pull request #11754 from ahocevar/compass-typo
Fix typo that prevents Rotate icon from indicating the view rotation
2020-11-22 10:44:41 +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
Andreas Hocevar f1c8c0770d Merge pull request #11750 from mike-000/patch-14
Update TMS tileUrlFunction example in ol/source/XYZ documentation
2020-11-18 12:44:40 +01: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
Andreas Hocevar a9f2dde2c9 Merge pull request #11748 from mike-000/patch-13
Add fetch and TextDecoder to polyfill list in README
2020-11-16 14:05:15 +01:00
Andreas Hocevar 168e7d7923 Merge pull request #11740 from ger-benjamin/wfs_bbox_per_feature_type_11187
Wfs bbox per feature type
2020-11-16 13:58:50 +01:00
Andreas Hocevar 70ec0a1fad Merge pull request #11747 from openlayers/dependabot/npm_and_yarn/rollup-2.33.2
Bump rollup from 2.33.1 to 2.33.2
2020-11-16 10:46:07 +01:00
Andreas Hocevar dd2026796d Merge pull request #11746 from openlayers/dependabot/npm_and_yarn/babel-loader-8.2.1
Bump babel-loader from 8.1.0 to 8.2.1
2020-11-16 10:45:36 +01:00
Andreas Hocevar d61080e667 Merge pull request #11745 from openlayers/dependabot/npm_and_yarn/yargs-16.1.1
Bump yargs from 16.1.0 to 16.1.1
2020-11-16 10:44:59 +01:00
Andreas Hocevar e25ac4e299 Merge pull request #11744 from openlayers/dependabot/npm_and_yarn/webpack-dev-middleware-4.0.2
Bump webpack-dev-middleware from 4.0.0 to 4.0.2
2020-11-16 10:44:25 +01:00
Andreas Hocevar e95c20ba04 Merge pull request #11743 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-6.3.1
Bump copy-webpack-plugin from 6.3.0 to 6.3.1
2020-11-16 10:43:48 +01:00
Andreas Hocevar fe8f2ffc2c Merge pull request #11742 from openlayers/dependabot/npm_and_yarn/marked-1.2.4
Bump marked from 1.2.3 to 1.2.4
2020-11-16 10:43:15 +01:00
Andreas Hocevar 11b9a0f5ed Merge pull request #11722 from ahocevar/text-align-rtl
Correct meaning of 'start' and 'end' text align for LTR text
2020-11-15 20:45:16 +01:00
Andreas Hocevar 66f8c580d1 Remove unnecessary property 2020-11-15 20:39:52 +01:00
Andreas Hocevar 911f08c57f Merge pull request #11741 from bz2/include_license
Include LICENSE.md in built package
2020-11-15 09:27:22 +01:00
Andreas Hocevar 0a5483043d Improve readability of rendering test 2020-11-15 09:22:22 +01:00
Andreas HocevarandMoonE 7232001d9f Regex with better distinction between LTR and RTL characters
Co-authored-by: MoonE <maxi_kroeg@web.de>
2020-11-15 08:59:43 +01:00
Andreas Hocevar 8916667e94 Update ESRI editing example to use a different service 2020-11-12 17:08:26 +01:00
Andreas Hocevar bc8f0252a7 Add test for when neither dataProjection nor featureProjection are set 2020-11-12 11:34:26 +01:00
Andreas Hocevar 619fd4965b Write the correct SRS code in EsriJSON 2020-11-12 11:20:49 +01:00
Andreas Hocevar db180c555e Merge pull request #11718 from ahocevar/draw-extend
Initialize sketch point on Draw#extend()
2020-11-11 09:40:42 +01:00
Andreas Hocevar 05b63869d5 Merge pull request #11732 from mike-000/patch-23
Replace readURI with readStyleURL for KML StyleURLs
2020-11-10 16:04:34 +01:00
Andreas Hocevar 1273e68a38 Merge pull request #11731 from openlayers/dependabot/npm_and_yarn/mocha-8.2.1
Bump mocha from 8.2.0 to 8.2.1
2020-11-09 09:33:26 +01:00
Andreas Hocevar 1226fdfcca Merge pull request #11730 from openlayers/dependabot/npm_and_yarn/marked-1.2.3
Bump marked from 1.2.2 to 1.2.3
2020-11-09 08:40:52 +01:00
Andreas Hocevar 70541c0497 Merge pull request #11729 from openlayers/dependabot/npm_and_yarn/eslint-7.13.0
Bump eslint from 7.12.1 to 7.13.0
2020-11-09 08:40:13 +01:00
Andreas Hocevar c3b9e949bd Merge pull request #11728 from openlayers/dependabot/npm_and_yarn/webpack-cli-4.2.0
Bump webpack-cli from 4.1.0 to 4.2.0
2020-11-09 08:39:20 +01:00
Andreas Hocevar abaaace885 Merge pull request #11727 from openlayers/dependabot/npm_and_yarn/karma-firefox-launcher-2.1.0
Bump karma-firefox-launcher from 2.0.0 to 2.1.0
2020-11-09 08:34:50 +01:00
Andreas Hocevar 96b5d8148b Merge pull request #11726 from openlayers/dependabot/npm_and_yarn/copy-webpack-plugin-6.3.0
Bump copy-webpack-plugin from 6.2.1 to 6.3.0
2020-11-09 08:33:55 +01:00
Andreas Hocevar 7cc45c967b Correct meaning of 'start' and 'end' text align for LTR text 2020-11-06 18:13:50 +01:00
Andreas Hocevar bdd343e87b Merge pull request #11721 from mike-000/patch-21
Handle empty Z coordinates in KML
2020-11-06 13:38:06 +01:00
Andreas Hocevar 946d11269f Merge pull request #11587 from MoonE/fix-text-along-path-orientation
Determine orientation by actual text start and end x
2020-11-06 13:35:55 +01:00
Andreas Hocevar 2a46063d1f Merge pull request #11720 from ahocevar/winding-order-algorithm
Return to simpler and less efficient winding order algorithm
2020-11-06 10:48:46 +01:00
Andreas Hocevar c1a547a9af Return to simpler and less efficient winding order algorithm 2020-11-06 00:02:01 +01:00
Andreas HocevarandMoonE 2526dc738c More straithgforward calculation of MAX_SAFE_Y
Co-authored-by: MoonE <maxi_kroeg@web.de>
2020-11-05 23:11:56 +01:00
Andreas Hocevar 9804dc8fa3 Clamp to lowest/highest possible value instead of validity extent 2020-11-05 21:51:05 +01:00
Andreas Hocevar df261f6e0f Initialize sketch point on Draw#extend() 2020-11-05 18:27:40 +01:00
Andreas Hocevar 9c5e61ffb0 Merge pull request #11715 from ahocevar/legacy-full
Add all symbols to the legacy build
2020-11-05 10:46:30 +01:00
Andreas Hocevar f242b7d618 Update inline comments 2020-11-05 10:40:45 +01:00
Andreas Hocevar 68d6a6b84c Add all symbols to the legacy build 2020-11-04 19:56:24 +01:00
Andreas Hocevar 00415c6774 Merge pull request #11708 from openlayers/dependabot/npm_and_yarn/rollup-2.33.1
Bump rollup from 2.32.1 to 2.33.1
2020-11-04 10:30:37 +01:00
Andreas Hocevar 95c3ef7a20 Merge pull request #11705 from openlayers/dependabot/npm_and_yarn/webpack-dev-middleware-4.0.0
Bump webpack-dev-middleware from 3.7.2 to 4.0.0
2020-11-04 10:29:49 +01:00
Andreas Hocevar d9e0ddeb75 Exit process when done 2020-11-04 10:24:14 +01:00
Andreas Hocevar 7519641d98 Use express for webpack-dev-middleware requirement 2020-11-03 23:11:24 +01:00
Andreas Hocevar 5380a93aea Remove options that are no longer valid 2020-11-02 19:49:38 +01:00
Andreas Hocevar 88fa3942d8 Merge pull request #11698 from ahocevar/draw-pointer
Draw pointer improvements
2020-11-02 18:40:12 +01:00
Andreas HocevarandTim Schaub 4fe8c54146 Input is a void element
Co-authored-by: Tim Schaub <tschaub@users.noreply.github.com>
2020-11-02 11:14:25 +01:00
Andreas Hocevar 5b9ec1607d Move stats option to parent config 2020-11-02 09:28:53 +01:00
Andreas Hocevar 0ac52b2511 Merge pull request #11490 from mike-000/patch-13
iconUrlFunction option for ol/format/KML
2020-11-01 11:02:38 +01:00
Andreas Hocevar 4980e58db0 Add undo to draw-features example 2020-10-31 11:58:52 +01:00
Andreas Hocevar 48f357d518 Visual feedback for removeLastPoint() on touch devices 2020-10-29 22:06:51 +01:00
Andreas Hocevar 23a544aa30 Only draw when one pointer is active 2020-10-29 20:00:12 +01:00