Commit Graph
100 Commits
Author SHA1 Message Date
MoonE d742c38163 Merge pull request #12930 from MoonE/view-animation-test
Fix flaky view animation test
2021-10-27 00:21:04 +02:00
Maximilian Krög 687cffb5d9 Fix flaky view animation test 2021-10-26 21:52:10 +02:00
Maximilian Krög d8686598df Update heading and default port used 2021-10-17 01:33:06 +02:00
MoonE f4c2cbdb9b Merge pull request #12850 from MoonE/view-not-def-animation-fix
Fix issues with animate on View without center or resolution
2021-10-03 19:57:26 +02:00
Maximilian Krög 1be2c459c4 Fix end state for animation on view with invalid state 2021-10-03 00:22:18 +02:00
Maximilian Krög 84729e985f Add test for animation on view with invalid state 2021-10-03 00:19:05 +02:00
MoonE 9e37182649 Merge pull request #12646 from ashchurova/fix-8136-hit-detection-custom-renderer
Support for hit detection in styles with custom rendering
2021-09-29 20:22:57 +02:00
MoonE 5f118b0244 Merge pull request #12831 from MoonE/fix-emptied-vectorimage
Fix rendering VectorImage with no features in view extent
2021-09-28 23:28:00 +02:00
Maximilian Krög 1942f3f91b Fix rendering VectorImage with no features in view extent 2021-09-27 23:04:58 +02:00
Maximilian Krög 2d3d6cae31 Test VectorImage rendering view extent with no features 2021-09-27 23:04:55 +02:00
MoonE 964b1af72a Merge pull request #12774 from MoonE/fix-text-declutter
Fix text decluttering when segment length is zero
2021-09-18 11:09:15 +02:00
Maximilian Krög 4be657a28f Fix text decluttering when segment length is zero 2021-09-17 23:09:56 +02:00
MoonE 22a48fe939 Merge pull request #12607 from MoonE/expression-no-color-equal-operator
Don't add color as possible type if it was not set
2021-08-08 15:40:55 +02:00
Maximilian Krög 2bcd57193d Don't add color as possible type if it was not set 2021-08-08 15:30:57 +02:00
MoonE f701f20eae Merge pull request #12577 from MoonE/fix-buid-site-on-windows-cmd
Use shx for the build-site script, clean before run
2021-08-01 10:36:53 +02:00
Maximilian Krög 0f894a28df Use shx for the build-site script, clean before run 2021-08-01 09:55:30 +02:00
MoonE 0cc533e5d8 Merge pull request #12576 from MoonE/fix-example-and-legacy-build-with-nodejs-16-6
Fix example and legacy build with nodejs 16.6
2021-08-01 09:51:25 +02:00
Maximilian Krög 687b131714 Fix example and legacy build with nodejs 16.6 2021-08-01 01:13:26 +02:00
MoonE f1530364dd Merge pull request #12528 from MoonE/hit-detect-priority-test
Convert the hit tolerance priority example into a test
2021-07-17 17:49:21 +02:00
Maximilian Krög 19fb51183e Convert hit detect priority example to test 2021-07-17 15:09:38 +02:00
MoonE f87abdb612 Merge pull request #12507 from MoonE/fix-regular-shape-hit-detect-transparent-fill
Fix regular shape hit detect transparent fill
2021-07-13 17:54:41 +02:00
Maximilian Krög 58e2e57638 Fix hit detection of RegularShape with transparent fill 2021-07-12 19:33:17 +02:00
Maximilian Krög 5f3b22bf7f Remove lineCap, it is useless on closed paths 2021-07-12 19:32:42 +02:00
MoonE 7adaf7c1b5 Merge pull request #12442 from MoonE/fix-layer-extent
Fix layer render extent when it is not at all in view
2021-07-11 20:04:45 +02:00
Maximilian Krög 83226cc79a Fix layer render extent when it is not at all in view 2021-07-11 18:27:48 +02:00
Maximilian Krög f57413fc04 add tests for layer extent config 2021-07-11 18:27:48 +02:00
MoonE bb0ea08d17 Merge pull request #12467 from MoonE/fixes-regular-shape
Fixes / improvements for RegularShape
2021-07-11 15:47:15 +02:00
Maximilian Krög ad37baf351 Remove redundant size properties / getter 2021-07-11 12:32:04 +02:00
Maximilian Krög bee28d61ea cache render options object 2021-07-11 12:32:03 +02:00
Maximilian Krög 53cf5bb282 Lazily create Regular shape canvases
Creating the cached canvases is expensive and they may never be used.
E. g. the hit detect canvas is not needed with the Immediate renderer
and if a feature is never in the viewport the image is not needed either.
2021-07-11 12:32:03 +02:00
Maximilian Krög f1ecc87425 High resolution image style for immediate renderer 2021-07-11 12:32:03 +02:00
Maximilian Krög 87f215939c Fix some RegularShape bugs related to canvsa size
- remove jitter when using RegularShape size in animation, size should
always be an integer
- canvas may have been too small for miter line join
- canvas was at least one stroke width too large for round line join
- reduce canvas size even more for bevel line join

Canvas now precisely fits the shape including stroke, The angle of the
shape is ignored for the calculation.
2021-07-11 12:32:03 +02:00
Maximilian Krög f21513ab5a Consistent behaviour if two radii are provided
Always double the points event when two radii of same size are provided.
2021-07-11 12:32:03 +02:00
Maximilian Krög 28c40fe93e getImage is always called with valid pixelRatio 2021-07-11 12:32:03 +02:00
Maximilian Krög 5716c614a8 Cleanup drawing of RegularShape
Fixes missing miter/bevel line join because path was not closed before
stroking.
Reduce canvas context calls, skip beginPath, and instead of drawing the
last point use closePath
2021-07-11 12:31:55 +02:00
Maximilian Krög 82265ef031 No unnecessary canvas with transparent fill
With pixelRatio != 1 and a transparent fill a unnecessary image was created.
2021-07-11 12:30:18 +02:00
MoonE 9c25b5936a Merge pull request #12480 from MoonE/fix-tile-drawing
Fix gap in tiles due to floating point math
2021-07-06 23:14:25 +02:00
Maximilian Krög 7f088c2eb8 Fix gap in tiles due to floating point math 2021-07-06 21:55:24 +02:00
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