Andreas Hocevar
5a8df1d4e2
We no longer need to increase the cache size
2020-01-08 10:53:42 +01:00
Andreas Hocevar
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
Andreas Hocevar
3de05c249b
Fix container transform comparison
2019-10-31 20:29:20 +01:00
Andreas Hocevar
3c243b0236
getFeature() for VectorTile layer
2019-10-08 08:23:38 +02:00
Frederic Junod
41b7893523
Mark properties as nullable
2019-10-01 10:47:07 +02:00
Simon Seyock
6b5c2f47bb
reduced typecasts in layerrenderer
2019-09-25 15:24:37 +02:00
Andreas Hocevar
3ed1a433fb
Don't attempt to render when there is no source
2019-09-24 17:37:22 +02:00
Tim Schaub
54d3af40dd
Transform the layer extent when a user projection is set
2019-09-23 17:23:20 +02:00
Tim Schaub
e94c7b6c39
Only set frameState.animate true if in transition and alpha < 1
2019-08-15 12:55:27 -06:00
ahocevar
e07ff9c04e
Make zDirection configurable on tile source
2019-07-30 16:50:01 +02:00
ahocevar
9cd35d67a9
Fix clipping and clearing
2019-06-23 14:23:32 +02:00
ahocevar
4d2fa476a3
Simpler z sort
2019-06-23 14:22:56 +02:00
Frederic Junod
ec5e8bfa50
Set pixelTransform and inversePixelTransform as protected
...
The variables are used in child classes
2019-06-14 14:52:28 +02:00
Frederic Junod
40c49a9ce5
Remove layerState param from prepareFrame and renderFrame function
2019-05-25 07:19:10 +02:00
ahocevar
ae47d3df58
Use opacity from layer state
2019-05-22 16:47:22 +02:00
ahocevar
4c8effe6fa
No tile transition when layer opacity is set
2019-05-22 16:47:22 +02:00
ahocevar
c56ad4363d
Canvas opacity instead of css
2019-05-22 16:47:22 +02:00
ahocevar
a45e704be2
Smarter reuse detection
2019-05-22 16:46:46 +02:00
ahocevar
d1f1b468b1
Reuse target for image layers
2019-05-22 16:46:46 +02:00
ahocevar
a55505b36a
Reuse containers for tile, vector and vector tile layers
2019-05-22 16:46:40 +02:00
ahocevar
5fe9e06535
Use clipping to not render high res tiles on top of low res
2019-05-22 15:57:15 +02:00
ahocevar
606443bc6d
Pass render target of previous layer to next layer
2019-05-22 15:56:51 +02:00
Andreas Hocevar
3a7f9d93f4
Merge pull request #9357 from ahocevar/vectortile-view-resolution-2
...
Render vector tiles at the view resolution
2019-03-25 17:44:31 +01:00
Lutz Helm
085c60af49
Remove tile source zDirection getter
...
The renderer now accesses the zDirection member directly if it exists.
This also has the advantage of not advertising any object methods that
hav no use for most tile sources.
2019-03-21 14:47:09 +01:00
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
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
3557a13147
Only consider child range with drawable tiles
2019-02-09 19:35:31 +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
Frederic Junod
ba02320fcc
Remove unused layerState param
2019-02-05 11:46:12 +01:00
Frederic Junod
0b53a3229b
Remove unneeded type cast
2019-02-04 09:58:49 +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
fbf98a44ea
Streamline tile preparation and remove unused code
2018-11-29 22:35:46 +01:00
ahocevar
82e2a84862
Remove interim tile handling for now
2018-11-28 14:42:41 +01:00
ahocevar
43759fd846
Decouple executor group creation from rendering
2018-11-28 14:42:40 +01:00
Tim Schaub
e9a30c5cb7
Use standard tile coords
2018-11-21 11:14:17 -07:00
Tim Schaub
7036064ffc
Add tiles to avoid 404s in rendering tests
2018-11-19 13:50:52 -07:00
ahocevar
5cc74ee1d2
Scale tiles instead of canvas
2018-11-18 19:31:14 +01:00
Tim Schaub
5d528dca3b
Target, source arg order for make* transform functions
2018-11-17 16:28:29 +01:00
Tim Schaub
af10f6a75c
Use the inverse pixel transform in pre/post render events
2018-11-17 16:28:28 +01:00
Tim Schaub
686847f491
Make forward and inverse pixel transforms during render
2018-11-17 16:28:27 +01:00
Tim Schaub
a490c658fb
Overscale canvas if sources have non-zero min zoom
2018-11-16 14:57:18 +01:00
Tim Schaub
038f122d11
Clip tile layers by extent
2018-11-16 14:57:17 +01:00
Tim Schaub
cc9b7b6259
Work around a TypeScript issue with inheritdoc
2018-11-16 14:57:14 +01:00
Tim Schaub
832dadb3af
Dedicated transforms
2018-11-16 14:57:14 +01:00