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
Tim Schaub
666f57bd4c
Unused transforms
2018-11-16 14:57:13 +01:00
Tim Schaub
32495388b9
Transform origin top left
2018-11-16 14:57:13 +01:00
Tim Schaub
aa4237539f
Provide a pixel transform from the tile renderer
2018-11-16 14:57:13 +01:00
Tim Schaub
26de43de0c
Unused imports
2018-11-16 14:57:11 +01:00
Tim Schaub
b5378deb45
Create context in the canvas layer base class
2018-11-16 14:57:11 +01:00
Tim Schaub
33f6d6f110
One fewer transform
2018-11-16 14:57:11 +01:00
Tim Schaub
a9f98f2b1e
Rotation for image layers
2018-11-16 14:57:10 +01:00
Tim Schaub
8822690cf4
Work with sources that have a max zoom
2018-11-16 14:57:10 +01:00
ahocevar
9a4e665c3b
Position tiles by offset instead of extent
2018-11-16 14:56:50 +01:00
Tim Schaub
c137b68938
Dispatch pre-render before rendering
2018-11-16 14:56:50 +01:00
ahocevar
8eb48604e9
Round tile x and y and reuse w and h
2018-11-16 14:56:50 +01:00
Tim Schaub
489af4023d
Work with high dpi tiles
2018-11-16 14:56:49 +01:00
Tim Schaub
5ba8795355
Tile layer rendering with the composite renderer
2018-11-16 14:56:48 +01:00
Tim Schaub
55a963e0a9
Move canvas creation to intermediate canvas renderer constructor
2018-11-12 20:57:07 +01:00
Tim Schaub
7374e32007
Canvas layer renderers are now dependencies of layers
2018-11-12 14:54:11 +01:00
Frederic Junod
3cf4dbfcc6
Simplify import path in ol/renderer/
2018-11-05 16:26:45 +01:00
Kevin Schmidt
b26d81fd7e
Fix type check errors in canvas tile renderers
2018-10-02 15:24:51 -06:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +02:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Guillaume Beraudo
fe86d2e7f7
Expose original getGutter
...
TileWMS objects take a gutter option but do not have a public getter
for it. This makes it convoluted for user code to recreate the object
(ex: in the case of serialization/deserialization).
- the getGutterInternal() method is renamed to getGutter;
- the getGutter(projection) method is renamed to getGutterForProjection,
which is also more explicit.
The getGutter method was not API and is only used by the renderer.
2018-08-02 17:12:41 +02:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00