Maximilian Krög
a86f0704f3
Fix error when disposing ol/renderer/webgl/TileLayer
...
- helper may not exist
- tileTextureCache not cleared when canvasCacheKey changes
2022-02-07 00:17:32 +01:00
Maximilian Krög
a10872baa4
No need to update the style when no source is set
2022-02-07 00:17:29 +01:00
Maximilian Krög
93c08784af
Only set renderer to ready when all messages are received
2022-02-02 22:54:16 +01:00
Maximilian Krög
613d083e46
Test points layer ready state
2022-02-02 22:54:16 +01:00
MoonE
b255e85be9
Merge pull request #13297 from MoonE/from-render-feature
...
Add function to convert RenderFeature to Feature
2022-01-30 13:53:47 +01:00
Maximilian Krög
f0e768bb9a
Remove case of MulitPolygon RenderFeature
2022-01-29 21:51:29 +01:00
Maximilian Krög
856f239280
Add function to convert RenderFeature to Feature
2022-01-29 17:52:07 +01:00
Maximilian Krög
f2d65ba0ab
Only set id if it is defined when creating feature
2022-01-29 16:06:01 +01:00
MoonE
239a082dbf
Merge pull request #13229 from MoonE/apidoc-dyn-navigation-loading
...
Load api navigation dynamically to reduce needed disk space
2022-01-23 11:21:31 +01:00
Maximilian Krög
14c5e9a7e8
Load api navigation dynamically to reduce needed disk space
2022-01-22 22:29:33 +01:00
MoonE
9b0878a94a
Merge pull request #13175 from MoonE/nodejs-12-compatibility
...
Allow nodejs 12 to build the examples again
2021-12-31 23:00:24 +01:00
Maximilian Krög
d63a7ae497
Allow nodejs 12 to build the examples again
2021-12-31 11:06:43 +01:00
MoonE
ea2e87c563
Merge pull request #13030 from MoonE/geographic-popover-fix
...
Correctly set popover position in geographic example
2021-11-21 22:37:32 +01:00
Maximilian Krög
89baa4aa01
Correctly set popover position in geographic example
2021-11-20 17:47:55 +01:00
MoonE
a1b8f08bca
Merge pull request #12999 from MoonE/fix-style-apidoc
...
Fix style related apidoc issues
2021-11-14 17:59:59 +01:00
Maximilian Krög
c47fac19b5
Fix style related apidoc issues
2021-11-14 16:56:59 +01:00
MoonE
03efc13357
Merge pull request #12978 from EvertEt/patch-1
...
Add null to style jsdoc of VectorImage
2021-11-14 16:46:52 +01:00
MoonE
fa2f730442
Merge pull request #12893 from andrewcoder002/main
...
Allow map target to be an external window
2021-11-03 21:20:24 +01:00
Maximilian Krög
07fa1adfe8
Use more structured yaml for examples source path
2021-11-02 22:10:27 +01:00
Maximilian Krög
12de93b397
Fixed unusable overlay in fullscreen mode
2021-11-02 22:10:27 +01:00
Maximilian Krög
a10bc713f2
Configure additional sources displayed below map
2021-11-02 00:21:12 +01:00
Maximilian Krög
ca9fc92f70
Example builder code cleanup
...
Add function for transforming js source and cloaking
Use to parse source for import statements
Use now released parcel 2.0.0
2021-11-02 00:21:12 +01:00
Maximilian Krög
46d9e8db8e
Fix codesandbox edit for offscreen-canvas example
2021-11-02 00:21:12 +01:00
Maximilian Krög
8cff620691
Improve unusable map window
...
As long as the original window is visible animation frames will run
and the external map will be usable
2021-11-02 00:21:12 +01:00
Maximilian Krög
50dc9f1f88
Fix map tests
2021-11-02 00:21:11 +01:00
Maximilian Krög
9a6bb4d751
Fix FullScreen state when changing target in fullscreen mode
2021-11-02 00:21:11 +01:00
Maximilian Krög
7bed63bf3f
Improve window open and close handling
...
Use pagehide event instead of beforeunload, seems to be more reliable
Add a timeout and info message when opening the window fails
2021-11-02 00:21:11 +01:00
Maximilian Krög
5149224354
Improve code and its formatting
2021-11-02 00:21:11 +01:00
Maximilian Krög
770f53b5e3
Make FullScreen control work in external window
2021-11-02 00:21:10 +01:00
Maximilian Krög
d1560176ba
Fix mouse interactions with tabindex in external window
2021-11-02 00:21:10 +01:00
Maximilian Krög
86801d1151
Make external map example work
2021-11-02 00:21:09 +01:00
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