Andreas Hocevar
422db1b144
Remove ENABLE_RASTER_REPROJECTION flag
2022-08-18 22:03:15 +02:00
Tim Schaub
be8d2843cd
Avoid append only cache in WebGL tile layers
2022-08-16 16:31:02 -06:00
Tim Schaub
99612e7f9a
Remove opt_ prefix
2022-08-11 20:14:35 -06:00
MoonE
854300181a
Merge pull request #13937 from MoonE/use-nicer-functions
...
Use nicer functions, remove old code
2022-08-05 21:19:38 +02:00
Andreas Hocevar
b81dd0b3bc
Render vector tile vectors in correct sequence for the postrender event
2022-08-05 15:06:38 +02:00
Maximilian Krög
0b945f2321
Use includes instead of indexOf
2022-08-05 01:49:01 +02:00
Tim Schaub
85ef563ba8
Remove PluggableMap
2022-07-31 10:08:13 -06:00
Maximilian Krög
6a6d2cd612
Remove IE image smoothing fallback
2022-07-30 22:36:32 +02:00
Maximilian Krög
361f1ab837
Replace VectorTileRenderType enum with typedef
2022-07-30 15:06:12 +02:00
Tim Schaub
25d47ed752
Use Object.assign
2022-07-28 13:23:16 -06:00
Maximilian Krög
2897f03ea5
Remove deprecated method PluggableMap#forEachLayerAtPixel
2022-07-26 00:57:21 +02:00
Olivier Guyot
7d56c56210
Merge pull request #13461 from jahow/webgl-shape-renderer
...
WebGL vector renderer for polygons, lines and points
2022-07-22 10:05:31 +02:00
Andreas Hocevar
a1d68b4f66
Fix reloading tiles in case of an error with tile.load()
2022-07-21 23:23:40 +02:00
Tim Schaub
01f3536d29
Using a union type instead of a string enum
2022-07-21 14:08:16 -07:00
Tim Schaub
bd9e73a534
Renaming fill and stroke attributes and shaders
2022-07-21 13:30:22 -07:00
Tim Schaub
f21dd84c91
Remove api annotation for experimental features
2022-07-21 13:08:18 -07:00
Tim Schaub
5182b16452
Private if not used elsewhere; underscore suffix only if private
2022-07-21 13:03:10 -07:00
Andreas Hocevar
69ae6c85cf
Merge pull request #13835 from ahocevar/source-state
...
Recover from incorrect rebase after removal of string enums
2022-07-18 22:42:58 +02:00
Andreas Hocevar
085fca6a9f
Merge pull request #13832 from mike-000/vector-tile-grids
...
Base vector tile render tile grid on the source grid
2022-07-18 10:07:52 +02:00
Andreas Hocevar
4fec8d4615
Recover from incorrect rebase after removal of string enums
2022-07-18 09:42:52 +02:00
mike-000
8dcb78bcd9
Base render tile grid on the source grid
...
Use source zDirection for both grids
2022-07-16 10:06:42 +01:00
Olivier Guyot
998dc82592
fixes after rebase
2022-07-15 22:53:48 +02:00
Olivier Guyot
cd83424867
WebGL / improve doc for Helper and VectorLayerRenderer
...
Also created enums for attributes (like uniforms), in an attempt to clarify
what is accessible to the vertex shaders.
2022-07-15 22:33:52 +02:00
Olivier Guyot
52279967c4
WebGL / Reorganize VectorLayerRenderer options, update example
...
Now different attributes can be provided for each type of geometry.
Also updated the example to accomodate for this and use the default shaders.
2022-07-15 22:33:52 +02:00
Olivier Guyot
79c974d63d
WebGL / Add new module with default shaders for VectorLayer
2022-07-15 22:33:52 +02:00
Olivier Guyot
9e35acaa0a
Adapt the batch renderers to trigger a repaint after buffer rebuild
2022-07-15 22:33:52 +02:00
burleight
8769ea519e
WebGL / render multiple worlds to wrap X in vector renderer
...
From https://github.com/jahow/openlayers/pull/1
Adds logic in WebGLVectorLayerRenderer to handle multiple worlds visible at once.
Co-authored-by: Tomas Burleigh <t.burleigh@gmail.com >
Co-authored-by: Olivier Guyot <olivier.guyot@camptocamp.com >
2022-07-15 22:33:52 +02:00
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