Lutz Helm
f5abb45de0
Add a zDirection option for Zoomify
...
Via zDirection, the renderer's selection of a tile source's resolution can be
controlled if the view's resolution does not match any tile source resolution.
Currently the zDirection option is only available for Zoomify. The comment
https://github.com/openlayers/openlayers/issues/9343#issuecomment-474341033
describes why caution is advised when using zDirection for other sources.
ol/source/Tile~TileSource#getZDirection has been added to avoid having the
getZDirection method solely in the Zoomify source - just to document the
possibility.
2019-03-21 10:06:22 +01:00
ahocevar
fefcc9f0ca
Return directly when all we do is render queued images
2019-03-20 23:04:48 +01:00
ahocevar
d2f60a70d1
Recreate instructions for the view resolution
2019-03-20 22:45:17 +01:00
ahocevar
a25ca03040
Do not use tile.load() for getting source tiles
2019-03-20 22:45:17 +01:00
ahocevar
4a9d2e689e
Create a more accurate origin for tile positioning
2019-03-13 18:34:23 +01:00
ahocevar
b4fc249991
Faster calculation of target size
...
Since usedTiles and wantedTiles will never have an overlap, we can use their
key count directly.
2019-03-12 08:53:52 +01:00
ahocevar
11f5a4c5b8
Move tile specific methods to the tile layer renderer
2019-03-12 00:19:51 +01:00
ahocevar
0f217392d7
Adjust tile cache size when too small
2019-03-12 00:19:13 +01:00
ahocevar
b2722542fe
Simplify vector tile projection handling
2019-03-10 09:37:58 +01:00
Frederic Junod
6de566d95b
Set the canvas size to 0 on dispose
2019-03-08 13:25:49 +01:00
ahocevar
fd07de39ad
Consider all tiles for hit detection when decluttering
2019-02-18 11:40:52 +01:00
Andreas Hocevar
a2a3bda5c9
Merge pull request #9221 from ahocevar/remove-unused-sortbyzindex
...
Remove unused sortByZIndex function
2019-02-15 09:45:26 +01:00
Frédéric Junod
f28b7c7bcf
Merge pull request #9220 from fredj/rm_extra_canvas_resize
...
Don't resize/clear the vector renderer canvas
2019-02-15 09:34:57 +01:00
ahocevar
020f513ed5
Remove unused sortByZIndex function
2019-02-14 17:40:38 +01:00
Frederic Junod
30fb0b1ed1
Don't resize/clear the vector renderer canvas
...
Already done in the `renderFrame` function
2019-02-14 13:49:31 +01:00
Frederic Junod
40605d7c53
Don't use loadImage function to avoid infinite loading loop
2019-02-14 13:47:52 +01:00
ahocevar
3557a13147
Only consider child range with drawable tiles
2019-02-09 19:35:31 +01:00
Frederic Junod
6f8ffddace
Remove opt_this param in manageTilePyramid function
2019-02-07 13:18:52 +01:00
Frederic Junod
41d231a4c7
Remove opt_this param in forEachTileCoordParentTileRange function
...
The function is only called by `ol/renderer/canvas/TileLayer` and `opt_this` was always `null`.
2019-02-07 11:43:52 +01:00
Andreas Hocevar
88c213078e
Merge pull request #9179 from gberaudo/allow_image_declutter
...
Allow declutter with image render mode
2019-02-05 20:29:15 +01:00
Guillaume Beraudo
168edac4a6
Allow declutter with image render mode
...
Using declutter in image render mode is legitimate: each tile is
decluttered, avoiding symbol/text overlaps.
2019-02-05 17:25:00 +01:00
Frederic Junod
ba02320fcc
Remove unused layerState param
2019-02-05 11:46:12 +01:00
Frederic Junod
427c73ddf9
Remove unnecessary type cast
...
`npx tsc` output is the same before and after the changes.
2019-02-05 11:46:12 +01:00
Frederic Junod
0b53a3229b
Remove unneeded type cast
2019-02-04 09:58:49 +01:00
ahocevar
4f487c4df1
Update comment
2019-01-25 16:49:35 +01:00
ahocevar
6e58796f66
Do not keep potentially unused tiles in the render queue
2019-01-25 16:49:34 +01:00
ahocevar
09a1c1ef1b
Avoid clipping when rendering to tiles that don't exceed the clip extent
2019-01-24 09:09:22 +01:00
ahocevar
592b6cf362
Keep track of used labels
2019-01-23 21:52:22 +01:00
Frederic Junod
8dbe8bc34e
Parse the opacity from style as float
2019-01-22 12:48:14 +01:00
ahocevar
a5d93117ed
Also consider lower resolution tiles as used tiles
2019-01-21 22:34:01 +01:00
ahocevar
cd6d195e3f
Render whole image queue in hifi mode to avoid extra render cycles
2019-01-20 23:44:28 +01:00
ahocevar
90c8fc7888
Properly unregister prepareTile listeners
2019-01-13 23:09:24 +01:00
ahocevar
0f3c0d1af4
Rename VectorImageTile to VectorRenderTile
2019-01-09 13:45:01 +01:00
ahocevar
32696638d2
Simplify vector tile code
2019-01-09 13:45:01 +01:00
Frédéric Junod
cf6b1ca1cc
Merge pull request #9072 from fredj/rm_layerStates
...
Remove 'layerStates' property from the FrameState
2019-01-07 10:11:52 +01:00
Olivier Guyot
62c7a49943
Webgl points / added a texture option & improved doc
2018-12-28 15:53:07 +01:00
Olivier Guyot
0acfd7ab59
WebGL points / Added a color attribute
2018-12-28 15:53:07 +01:00
Frederic Junod
a0f15e1eb6
Only schedule the unused layers renderer removal when it's needed
2018-12-21 10:37:03 +01:00
Frederic Junod
3193de0906
Only schedule the icon cache expire when it's needed
2018-12-19 14:34:22 +01:00
Frederic Junod
a4fe067aad
Create a layer state map instead of an array of uids
2018-12-19 12:45:39 +01:00
Frederic Junod
016d738269
Move frameState test on top in removeUnusedLayerRenderers_
2018-12-18 13:34:19 +01:00
Frederic Junod
5d1c27d05d
Don't create an array of managed layers
2018-12-18 13:17:00 +01:00
Frederic Junod
1750ff43e0
Always schedule unused layers removal function
2018-12-18 09:49:47 +01:00
Frederic Junod
5195adea85
Remove 'layerStates' property from the FrameState
2018-12-18 09:49:38 +01:00
Andreas Hocevar
0cda18f58a
Merge pull request #9008 from ahocevar/decouple-group-creation
...
Decouple render instruction creation from rendering
2018-12-07 14:33:54 +01:00
Olivier Guyot
27b0cf18e7
Update default shaders in documentation of webgl classes
2018-12-07 09:32:52 +01:00
Olivier Guyot
f177a2bcd5
Simple handling of layer opacity in webgl points layer
...
Now the layer opacity is simply handled by a CSS property on the layer DOM element. As such it does not have to be
taken into account in shaders.
2018-12-07 09:02:02 +01:00
Olivier Guyot
a6989af00a
Webgl points layer / added callbacks for attributes
...
Now opacity, rotateWithView and tex coords can be set with callbacks per feature.
2018-12-07 08:57:12 +01:00
Andreas Hocevar
4ce5379a4b
Merge pull request #9039 from OSHistory/tsFunctionReturnVoid
...
Add ': void' to non returning functions (error TS7014)
2018-12-07 07:58:40 +01:00
Andreas Hocevar
1c4cfc9559
Merge pull request #9024 from ahocevar/imagelayer-events
...
Add prerender and postrender events for Image layer
2018-12-07 07:46:39 +01:00