Olivier Guyot
c9f3665237
Remove @api on webgl vector layer renderer as well as utilities
...
This removes the WebGL vector layer renderer as well as the WebGL helper class
from the API.
2022-07-15 22:33:52 +02:00
Olivier Guyot
7e9c620914
Fix linting and typechecking errors
2022-07-15 22:33:52 +02:00
Olivier Guyot
a2ba7ecaa7
Make some adaptations to the PointsLayer renderer to make it work
2022-07-15 22:33:52 +02:00
Olivier Guyot
c555315014
Add a new WebGLVectorLayer renderer
...
This relies on a mixed geometry batch and separate batch renderers (lines,
points and polygons). A different shader program is used for each of these
geometries, and three rendering passes are made.
2022-07-15 22:33:52 +02:00
Olivier Guyot
cfaf9a14e5
Rework a bit the webgl helper to allow having several programs
...
Without this, doing render passes with different programs using one
helper instance was not really doable
2022-07-15 22:33:52 +02:00
Olivier Guyot
a18ffaed54
Move webgl utils out of ol/renderer/webgl/Layer module into their own module
2022-07-15 22:33:52 +02:00
Andreas Hocevar
aff4451fb1
Merge pull request #13823 from ahocevar/reduce-canvas-footprint
...
Reduce canvas memory footprint for better iOS stability
2022-07-15 20:35:09 +02:00
Andreas Hocevar
96e2400c46
Fix alignment of rotated image layers
2022-07-15 20:30:38 +02:00
Andreas Hocevar
f720404559
Updates after rebase
2022-07-15 11:01:30 +02:00
Andreas Hocevar
884c0c6129
Resolve conflicts
2022-07-15 10:51:08 +02:00
Tim Schaub
3a061ed576
Use union type instead of enum for canvas builder type
2022-07-15 10:51:07 +02:00
Tim Schaub
9a6f8493fb
Use union instead of enum for geometry type
2022-07-15 10:48:37 +02:00
Andreas Hocevar
57f147988d
Use union type for source state
2022-07-15 10:46:44 +02:00
Andreas Hocevar
f3a05ba82d
Use device instead of data pixel ratio to determine canvas size
2022-07-10 23:06:41 +02:00
Andreas Hocevar
6086459cba
Handle opacity on canvas instead of dom
2022-07-10 23:06:40 +02:00
Andreas Hocevar
239487e9f0
Only create and load tiles within the viewport
2022-07-10 23:06:40 +02:00
Andreas Hocevar
6ffbfa1a4a
Minimize canvas size for rotated views
2022-07-10 19:17:51 +02:00
mike-000
214a384adf
Fix tile pyramid getData()
2022-05-28 11:56:24 +01:00
Maximilian Krög
2473e5bd32
Fix vector tile renderer ready
2022-05-24 21:47:09 +02:00
Maximilian Krög
de392a9846
Don't fire rendercomplete event while icons are loading
2022-05-24 21:47:09 +02:00
Maximilian Krög
5345b80aa1
Remove unused getImageState call
2022-05-24 21:47:08 +02:00
Maximilian Krög
d7ebcf0ef8
Fix error when image state changes on disposed renderer
2022-05-24 21:47:04 +02:00
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