Commit Graph
100 Commits
Author SHA1 Message Date
MoonE 2779ea1849 Merge pull request #12453 from MoonE/kml-multiple-linear-rings
Allow multiple LinearRings per innerBoundaryIs
2021-07-06 00:05:50 +02:00
MoonE 9af9c0b974 Merge pull request #12466 from MoonE/get-vector-context-tile-layer
Fix getVectorContext on TileLayer with pixelRatio != 1
2021-07-04 23:30:34 +02:00
Maximilian Krög c97bf3432f Fix transform for immediate rendering on canvas
If the canvas css transform does not match the frameState pixelRatio the drawing
is at the wrong size.
2021-07-04 18:33:43 +02:00
Maximilian Krög 0bad083056 Test getVectorContext with pixelRatio 2 and TileLayer 2021-07-04 18:33:40 +02:00
MoonE 43f374e547 Merge pull request #12463 from MoonE/feature-animation-example
Improve animation examples
2021-07-04 15:39:31 +02:00
Maximilian Krög a6d86ce0dd Update marker animation example
Continually animate between start and end position
Allow changing speed during animation
Stay at current position when animation stops
2021-07-03 20:10:09 +02:00
Maximilian Krög d7d0eeb7c7 Prefer Date.now() when possible 2021-07-02 23:01:11 +02:00
Maximilian Krög f506f4bdc9 Improve feature-animation example
Keep features within tile bounds
Skip drawing fully transparent style
Don't clone the geometry each frame
2021-07-02 22:55:13 +02:00
Maximilian Krög 4c346353fa Allow multiple LinearRings per innerBoundaryIs 2021-06-29 20:48:29 +02:00
MoonE 8155eda706 Merge pull request #12413 from MoonE/vectorlayer-hitdetect-image-invalidation
Fix hitdetection image invalidation
2021-06-21 22:47:21 +02:00
MoonE e9fd3fe201 Merge pull request #12212 from voegelas/ignore-empty-gx-coord
Ignore empty gx:coord elements in KML files
2021-06-21 18:18:00 +02:00
MoonE 029ce47907 Merge pull request #12418 from MoonE/fix-icon-tinting
Fix icon tinting with pixelRatio < 1
2021-06-21 18:16:06 +02:00
Maximilian Krög 1fc94337f7 Fix icon tinting with pixelRatio < 1 2021-06-21 00:13:55 +02:00
Maximilian Krög e8b336d11e Fix hitdetection image invalidation 2021-06-20 22:35:55 +02:00
Maximilian Krög 3e2c045617 Add test for hitdetection with wrap x 2021-06-20 22:35:55 +02:00
MoonE e82a86f563 Merge pull request #12194 from MoonE/immediate-pixel-ratio
Respect pixel ratio with immediate render
2021-06-18 19:31:00 +02:00
Maximilian Krög 74db0e7d21 Add render test for immediate render with pixel ratio 2 2021-06-17 23:21:30 +02:00
MoonE 9afc294d57 Merge pull request #12231 from MoonE/movetolerance-pixelratio
Move tolerance should not increase with higher pixel ratio
2021-06-17 19:14:46 +02:00
MoonE 9ab5b70e3a Merge pull request #12282 from M393/dragzoom-view-padding
Fix DragZoom with view padding
2021-06-17 19:13:03 +02:00
Maximilian Krög bb5e0773ae Move tolerance should not increase with higher pixel ratio
Browsers already handle the scaling, no need to multiply this again.
This now also allows setting a moveTolerance of zero which was not
possible before. In the isMoving_ method the condition is
distance > tolerance so this will work.
2021-06-17 19:08:29 +02:00
Maximilian Krög 5ba833a82c remove unused argument from function call 2021-06-17 00:14:34 +02:00
Maximilian Krög c55366d35e use correct stride for draw image 2021-06-17 00:14:34 +02:00
Maximilian Krög 3791dee358 Fix immediate render with pixel ratio != 1 2021-06-17 00:14:27 +02:00
MoonE da845c71c8 Merge pull request #12284 from MoonE/layer-group-inherit-zindex
Layers should inherit group z-index
2021-06-17 00:01:09 +02:00
MoonE 1e9b0bc079 Merge pull request #12359 from mike-000/patch-7
Fix broken link in docs
2021-05-27 00:12:30 +02:00
MoonE 8395445257 Merge pull request #12340 from MoonE/raster-example-tooltips
Fix raster example tooltips
2021-05-23 22:11:39 +02:00
Maximilian Krög ad8c704e4a Update d3 to v6.7.0 2021-05-23 17:57:36 +02:00
Maximilian Krög b49d94ce90 Fix raster example tooltips 2021-05-23 17:56:50 +02:00
MoonE e574bfe2db Merge pull request #12334 from MoonE/mapboxvector-example
More consistent example for ol/layer/MapboxVector
2021-05-19 21:55:56 +02:00
Maximilian Krög 5c7e499317 More consistent example for ol/layer/MapboxVector 2021-05-19 19:42:40 +02:00
MoonE f66fc99bd8 Merge pull request #12315 from MoonE/accessibility-attributions
Improve attribution accessibility
2021-05-14 21:18:43 +02:00
MoonEandMarc Jansen 99aa3b2640 Correctly initialize attribution aria state
Co-authored-by: Marc Jansen <jansen@terrestris.de>
2021-05-14 21:03:51 +02:00
MoonE ac9187c9bf Merge pull request #12313 from vittrup88/offscreencanvas-getfeatures
Hitdetection offscreencanvas worker
2021-05-14 00:59:19 +02:00
Maximilian Krög fc9e3e5610 Improve attribution accessibility
Tab order of attribution text should be after the toggle button
Add aria-expanded state to the toggle button.
2021-05-13 16:42:56 +02:00
Maximilian Krög de4a93709a Inherit layer group zIndex 2021-05-13 01:44:08 +02:00
Maximilian Krög d52497a722 Add function to dispose whole layer group 2021-05-09 00:45:56 +02:00
Maximilian Krög 6e64969664 Consistently name layer group 'group' 2021-05-09 00:43:58 +02:00
Maximilian Krög dabfe40700 Fix error in view-padding example
An error occured when the buttons are clicked before the source is loaded.
2021-05-08 05:15:12 +02:00
Maximilian Krög c19ebc72cb Fix dragzoom with rotated view
When the view is rotated the extent of the drag box is not the same as the
drag box.
2021-05-08 05:15:11 +02:00
Maximilian Krög b89809c1a1 Add new dragzoom test with view rotation
Also adds a new test for the duration and removes the duration from
the other tests to save on execution time.
2021-05-08 05:15:07 +02:00
Maximilian Krög c19664b6f5 Fix dragzoom test case 2021-05-08 04:18:57 +02:00
MoonE eea68e26ce Merge pull request #12266 from MoonE/fix-legacy-build
Fix legacy build
2021-05-04 20:38:51 +02:00
Maximilian Krög a235ecba95 Only delete build/legacy before building legacy
`transpile` deletes build/ol and `build-index` should delete index.js
2021-05-03 23:32:10 +02:00
Maximilian Krög 40f8e69675 Fix legacy build
The build process failed because webpack does not allow failed imports
when it is run as a module.
This detects modules with default exports and only generates import
statements for default exports where they are available.
2021-05-02 23:49:50 +02:00
MoonE 008ef24be9 Merge pull request #11952 from mike-000/patch-23
Draw 800km circles around both poles in Tissot example
2021-04-18 19:40:13 +02:00
MoonE c5d6ea3f6a Merge pull request #12227 from MoonE/fix-ie11-event-handling
Fix event handling for map in shadow root
2021-04-17 20:38:15 +02:00
Maximilian Krög 57e4e98757 Fix event handling with shadow-dom and ie11 event handling 2021-04-17 00:43:42 +02:00
MoonE 1554bc4cc2 Merge pull request #12216 from MoonE/zoomslider-layout
Fix ZoomSlider layout
2021-04-16 00:34:58 +02:00
Maximilian Krög fdbfb4015f Adjust zoomslider example layout 2021-04-16 00:29:09 +02:00
Maximilian Krög f999f1a675 Fix zoomslider layout with padding 2021-04-16 00:29:06 +02:00
MoonE ed5329e0cb Merge pull request #12217 from MoonE/example-fix-build
Fix building of examples with latest copy-webpack-plugin
2021-04-16 00:28:16 +02:00
Maximilian Krög 85ea74a383 Fix building of examples with latest copy-webpack-plugin 2021-04-15 00:20:59 +02:00
MoonE 26c1377768 Merge pull request #12180 from MoonE/text-builder-geometry-widths
Fix rendering of MultiPolygon text styles
2021-04-06 21:40:56 +02:00
Maximilian Krög 4f962a651a Fix rendering of MultiPolygon text styles
When overflow is false and some of a MultiPolygon's polygons are
outside the rendered extent the coordinates and geometryWidths arrays are
not kept in sync. Therefore the width check will filter on wrong data and
some texts may not be rendered.
2021-04-05 22:33:15 +02:00
Maximilian Krög 2b851724a6 Add regression test for multipolygon text rendering 2021-04-05 22:33:12 +02:00
MoonE 73392cc28e Merge pull request #12181 from MoonE/webpack-fix-ie11
Build for ie11 again
2021-04-05 10:55:14 +02:00
Maximilian Krög 9d773c8f19 Build for ie11 again 2021-04-05 02:55:17 +02:00
MoonE 6f7b6c8141 Merge pull request #12028 from MoonE/overview-map-no-initial-target
Overview map no initial target
2021-04-03 23:15:30 +02:00
MoonE 85c5530fe1 Merge pull request #12175 from MoonE/examples-webpack-refresh-entries-before-compile
Refresh available examples before each compilation
2021-04-03 20:21:32 +02:00
Maximilian Krög e6dacd07cd Refresh available examples before each compilation
This makes it possible to pickup new examples and prevents compilation
errors when an example is removed. This is especially handy when switching
branches. Otherwise the dev server has to be restarted each time.
2021-04-03 18:18:28 +02:00
MoonE ef86965456 Merge pull request #12080 from MoonE/cluster-source-min-distance
Add a minimum distance config to the cluster source
2021-03-04 22:28:30 +01:00
Maximilian Krög e6b1d38cc3 Add units for, remove unnecessary html 2021-03-04 21:05:01 +01:00
Maximilian Krög 1c4f525ca9 Add a minimum distance config to the cluster source 2021-03-02 23:07:52 +01:00
MoonE d09e303672 Merge pull request #12016 from MoonE/hitdetect-resolution-constant
Fix VectorLayer hitdetect problems
2021-02-27 20:50:31 +01:00
MoonE 085b6c99f4 Merge pull request #11845 from MoonE/draw-finish-condition-fix
Call finishCondition for all types for Draw interaction
2021-02-27 19:50:27 +01:00
Maximilian Krög 801dba4a38 Call Draw finishCondition for every type 2021-02-27 12:04:17 +01:00
Maximilian Krög 873020e1f8 Test Draw finishCondition for each type 2021-02-27 12:03:30 +01:00
Maximilian Krög 288fd0b74c Improve Draw type to mode conversion
Throw error if Draw is configured with an invalid type.
2021-02-27 11:12:24 +01:00
Maximilian Krög 59c76334b1 Draw box if OverviewMap is added to an existing map 2021-02-15 00:45:46 +01:00
Maximilian Krög 022b8cdb62 Fix layout of overview map
The button should not change its position when the collapsed state changes.
The overview map had a somewhat larger padding at the bottom due to being an
inline-block element and the configured line-height of 1.5.
2021-02-15 00:12:52 +01:00
Maximilian Krög 73d288c191 Fix initially empty overview map 2021-02-15 00:12:52 +01:00
Maximilian Krög 0f64bb7459 Invalid size set when map is not added to document
Parsing of an empty string with parseFloat resulted in NaN.
2021-02-15 00:12:37 +01:00
MoonE 27b4539360 Merge pull request #12027 from MoonE/update-links-2
Update / fix links to external ressources
2021-02-13 14:56:43 +01:00
Maximilian Krög 363cc802d0 Update / fix links to external ressources 2021-02-13 01:32:54 +01:00
MoonE 7dda97e2f7 Merge pull request #11996 from MoonE/update-links
Update links to external resources
2021-02-12 21:33:12 +01:00
Maximilian Krög dde6d6559c Reduce work for hitdetection
Skip cloning of style if geometry is not in extent.
2021-02-10 21:27:25 +01:00
Maximilian Krög 99564671c1 Only create one canvas per icon 2021-02-10 21:18:59 +01:00
Maximilian Krög de3f60861d Fix hitdetection of icons with opacity < 1
Hit detection works by reading the pixel color, if the icon is not drawn
with full opacity it won't work.
2021-02-10 21:16:55 +01:00
Maximilian Krög 8645a3109d Fix zIndex handling for hitdetection
getZIndex returns number|undefined, so Number conversion is unnecessary, but
undefined was converted to NaN instead of zero.
2021-02-10 01:04:21 +01:00
Maximilian Krög 5a7e4dfaf6 Add a constant for the hit-detection resolution 2021-02-10 01:04:19 +01:00
MoonE 261bba8359 Merge pull request #11995 from MoonE/vectorlayer-hitdetect-rounding
Fix hitdetect inaccuracy for VectorLayer's getFeatures
2021-02-09 19:59:05 +01:00
Maximilian Krög 8bd081d992 Add test for hitdetect function 2021-02-09 19:53:08 +01:00
Maximilian Krög 49c6ab716c Fix VectorLayer hitdetect inaccuracy
Due to rounding the hitdetection may have been off by one pixel.
At map edge the pixel coordinate may exceed the map's dimensions if an
decimal pixel ratio is used, this is fixed by clamping to the canvas
dimensions.
2021-02-09 19:53:08 +01:00
MoonE 7fe54ffa37 Merge pull request #12001 from openlayers/dependabot/npm_and_yarn/karma-6.1.0
Bump karma from 6.0.3 to 6.1.0
2021-02-09 00:17:14 +01:00
MoonE 14efd22039 Merge pull request #11999 from openlayers/dependabot/npm_and_yarn/babel/preset-env-7.12.13
Bump @babel/preset-env from 7.12.11 to 7.12.13
2021-02-09 00:12:35 +01:00
MoonE 78b113c037 Merge pull request #12000 from openlayers/dependabot/npm_and_yarn/babel/core-7.12.13
Bump @babel/core from 7.12.10 to 7.12.13
2021-02-08 23:57:51 +01:00
MoonE e13e7adcb9 Merge pull request #12003 from openlayers/dependabot/npm_and_yarn/puppeteer-7.0.1
Bump puppeteer from 5.5.0 to 7.0.1
2021-02-08 23:55:29 +01:00
MoonE 363f0d57d3 Merge pull request #12005 from openlayers/dependabot/npm_and_yarn/webpack-cli-4.5.0
Bump webpack-cli from 4.4.0 to 4.5.0
2021-02-08 23:47:39 +01:00
MoonE 360a983797 Merge pull request #12002 from openlayers/dependabot/npm_and_yarn/marked-2.0.0
[Security] Bump marked from 1.2.8 to 2.0.0
2021-02-08 23:29:27 +01:00
Maximilian Krög 0d5d346bcd Update links to external resources 2021-02-08 19:40:05 +01:00
MoonE 8616aa9320 Merge pull request #11992 from MoonE/measure-example
Improve measure example ux
2021-02-08 19:23:23 +01:00
MoonE 8c6dd4c244 Merge pull request #11974 from mike-000/patch-26
Fix polyfill inconsistencies
2021-02-07 14:36:22 +01:00
Maximilian Krög 7df38575b8 Improve measure example ux
- Pass click events on measure tooltips through to the map
- Put the tooltip for  the currently drawn geometry on top
- Disable text selection in the tooltips so clicking to draw does not select
2021-02-06 18:50:35 +01:00
MoonE c4099e6786 Merge pull request #11965 from mike-000/patch-24
Handle view rotation in d3 Integration example
2021-01-30 23:32:54 +01:00
MoonE 4538812bc3 Merge pull request #11873 from mike-000/patch-20
Update Mapbox-gl Layer example to mapbox-gl-js version 1.13.0 and add note about why an old version is used
2020-12-30 21:24:35 +01:00
MoonE 7778e373a7 Merge pull request #11865 from mike-000/patch-19
Use ol/array#includes instead of Array.prototype.includes()
2020-12-30 00:48:02 +01:00
MoonE 579db0138f Merge pull request #11871 from MoonE/fix-legacy-build-for-ie11
Fix examples and build for ie11
2020-12-29 23:55:44 +01:00
Maximilian Krög 358d6736d1 Make examples work with ie11 2020-12-29 23:04:15 +01:00
MoonE c9c71cbbcb Merge pull request #11859 from MoonE/no-duplicate-postrender-events
Do not fire duplicate postrender events
2020-12-24 10:24:49 +01:00
Maximilian Krög 17659b9a80 Do not fire duplicate postrender events 2020-12-24 02:25:42 +01:00