Commit Graph

2074 Commits

Author SHA1 Message Date
VLCEK Martin
bd223b4447 fix currentClip == null 2022-05-13 16:03:14 +02:00
Tim Schaub
a5c2c8d3d4 Merge pull request #13648 from tschaub/data-tile-size
Explicit data tile size
2022-05-07 10:16:40 -06:00
Tim Schaub
38b48bd341 Explicit data tile size 2022-05-06 14:47:10 -06:00
VLCEK Martin
e1593ce59d Support declutter mode for image styles
Allows to specify for each image style, whether the image
should be decluttered, always drawn but still serving as
obstacle, or drawn without being an obstacle for other
images/texts.

The layer must still have declutter = true set for this
property to have any effect.
2022-05-05 12:34:00 +02:00
Tim Schaub
de9f6e2dc5 Handle rotation with non-square tiles 2022-04-25 10:40:37 -06:00
Andreas Hocevar
d315675ecc Merge pull request #13528 from burleight/webglpointslayer-wrap-x
WebGLPointsLayer wrapX support - partially addressing #11131
2022-04-17 17:34:01 +02:00
Andreas Hocevar
ae00bf6c48 Merge pull request #13550 from ahocevar/background
Update backgrounds when function returns a different color
2022-04-10 01:25:49 +02:00
Andreas Hocevar
cbb18ab805 Update backgrounds when function returns a different color 2022-04-09 10:53:20 +02:00
mike-000
36159287d5 handle gutter in renderer 2022-04-08 14:17:22 +01:00
Tomas Burleigh
d524d46969 WebGLPointsLayer wrapX support - partially addressing #11131
WebGLPointsLayer renderFrame and renderHitDetection will now draw
multiple worlds if the source and projection support wrapX.

Hit detection needs additional improvement. It stops working after
more than one wrap around the world. If 0 is the middle world, then
the hit detection works for worlds -1, 0, and -1, but not for worlds
> 2 or < -2.

The example has hit detection enabled, demonstrated with a colour
change on hover for the circle styles. When moving the mouse, the hit
detection is unreliable and flickers on/off. This needs improvement.

The webgl-points renderer test has been updated.
2022-04-01 13:35:13 +13:00
mike-000
ea30a59bfe discard tainted pixelContext 2022-03-30 13:02:20 +01:00
mike-000
243ba189b7 include gutter in offsets 2022-03-29 13:22:10 +01:00
Andreas Hocevar
46ddbd7e0e Reset image when empty 2022-03-10 16:27:24 +01:00
Andreas Hocevar
2d63e29e04 Revert "Merge pull request #13398 from yonda-yonda/update_static_image_change_projection"
This reverts commit 1f8338d3b8, reversing
changes made to 10eb834337.
2022-03-09 14:43:50 +01:00
Andreas Hocevar
1f8338d3b8 Merge pull request #13398 from yonda-yonda/update_static_image_change_projection
Clear image when source's image is not ready
2022-02-21 08:42:16 +01:00
yonda-yonda
a631e7ba68 clear image when source status is EMPTY. 2022-02-20 00:26:31 +09:00
Andreas Hocevar
b7d022f80e Use same clipping method for vector and image tiles 2022-02-17 18:12:19 +01:00
Andreas Hocevar
3b4a2d5966 Remove unused clip code 2022-02-17 15:49:21 +01:00
Andreas Hocevar
c9ff07a695 Reduce the number of clip operations 2022-02-17 15:18:23 +01:00
Maximilian Krög
b29ab8f104 Link to class instead of module pages 2022-02-14 21:53:07 +01:00
Maximilian Krög
b9f9280260 Use code formatting for argument names in jsdoc 2022-02-13 13:39:10 +01:00
Tim Schaub
6f005e1f30 Preload tiles for WebGL tile layers 2022-02-09 14:01:14 -07:00
Tim Schaub
2526a04f2a Merge pull request #13338 from tschaub/get-layer-data
Get pixel data
2022-02-08 20:46:18 -07:00
Maximilian Krög
725729344c Remove warning for @type annotation by jsdoc 2022-02-08 21:38:41 +01:00
Tim Schaub
bd86639351 Keep track of when a layer is unrendered 2022-02-08 10:23:55 -07:00
Tim Schaub
eb4d5e0784 Get pixel data 2022-02-07 18:35:47 -07:00
MoonE
cd45663996 Merge pull request #13336 from MoonE/dispose-webgl
Dispose of webgl contexts
2022-02-07 22:38:36 +01:00
Tim Schaub
d9a11195e0 Merge pull request #13269 from mike-000/TileTexture-tilePixelRatio-gutter
Pass tilePixelRatio and gutter to TileTexture
2022-02-07 13:45:22 -07:00
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
Tim Schaub
adbbc05159 Avoid rendering outside WebGL layer and source extent 2022-02-05 21:02:22 -07:00
Tim Schaub
f10ba5c1e3 Avoid duplicate imports 2022-02-05 11:46:26 -07:00
Maximilian Krög
93c08784af Only set renderer to ready when all messages are received 2022-02-02 22:54:16 +01:00
Andreas Hocevar
7c3c1ac354 Fix rendercomplete for WebGLPoints layer and subclasses 2022-02-01 17:13:37 +01:00
Andreas Hocevar
c92e1ec9ab Improve types for tile layers 2022-01-30 09:10:29 +01:00
Andreas Hocevar
94cc414ea2 Defaults for the Layer, Source and Feature generics 2022-01-26 22:40:27 +01:00
mike-000
7af366586f Pass tilePixelRatio and gutter to TileTexture 2022-01-20 17:50:49 +00:00
Andreas Hocevar
30d27a1d59 Merge pull request #13212 from ahocevar/multisource-webgl
Support multiple sources for WebGL tile layers
2022-01-19 08:43:22 +01:00
mike-000
1c81f60fec re-enable image smoothing after rendering 2022-01-14 10:31:17 +00:00
Andreas Hocevar
0004b2594d Support multiple sources for layers 2022-01-13 17:42:52 +01:00
Tim Schaub
647a0d8ece Support the wrapX option for WebGL rendered tile sources 2022-01-11 12:48:49 -07:00
Tim Schaub
a963ab7d1d Avoid failure if existing target has no background color 2022-01-07 15:05:31 -07:00
mike-000
766a336650 Add getDataAtPixel() method for WebGL 2022-01-03 13:00:56 +00:00
Tim Schaub
275ecca473 Use background property for vector layers 2022-01-01 11:51:06 -07:00
Tim Schaub
e2883fb658 Deprecate the imageSmoothing option for sources 2021-12-27 15:30:48 -07:00
Tim Schaub
2d510e71a9 Ensure that tile range covers all pixels 2021-12-23 17:50:49 -07:00
Tim Schaub
59186f2afd Support paletted rendering in WebGL 2021-12-22 11:14:46 -07:00
mike-000
351ca5866b update docs to include u_opacity 2021-12-22 10:48:25 +00:00
Tim Schaub
68ea485e69 Dispatch precompose and postcompose events for WebGL layers 2021-12-15 16:59:51 -07:00
Andreas Hocevar
238695a107 Merge pull request #13085 from ahocevar/layer-background
Add layer background
2021-12-06 20:39:19 +01:00
Tim Schaub
f5803ad6ca Support expressions for band arguments 2021-12-05 17:04:50 -07:00