Classes
Type Definitions
- 
    
Data tile loading function. The function is called with z, x, and y tile coordinates and returns
datafor a tile or a promise for the same. - 
    
Options{Object}
 - 
Properties:
Name Type Argument Default Description loaderLoader <optional> 
Data loader. Called with z, x, and y tile coordinates. Returns
datafor a tile or a promise for the same. For loaders that generate images, the promise should not resolve until the image is loaded.attributionsAttributionLike <optional> 
Attributions.
attributionsCollapsibleboolean <optional> 
true Attributions are collapsible.
maxZoomnumber <optional> 
42 Optional max zoom level. Not used if
tileGridis provided.minZoomnumber <optional> 
0 Optional min zoom level. Not used if
tileGridis provided.tileSizenumber | Size <optional> 
[256, 256] The pixel width and height of the source tiles. This may be different than the rendered pixel size if a
tileGridis provided.gutternumber <optional> 
0 The size in pixels of the gutter around data tiles to ignore. This allows artifacts of rendering at tile edges to be ignored. Supported data should be wider and taller than the tile size by a value of
2 x gutter.maxResolutionnumber <optional> 
Optional tile grid resolution at level zero. Not used if
tileGridis provided.projectionProjectionLike <optional> 
'EPSG:3857' Tile projection.
tileGridTileGrid <optional> 
Tile grid.
opaqueboolean <optional> 
false Whether the layer is opaque.
stateState <optional> 
The source state.
wrapXboolean <optional> 
false Render tiles beyond the antimeridian.
transitionnumber <optional> 
Transition time when fading in new tiles (in miliseconds).
bandCountnumber <optional> 
4 Number of bands represented in the data.
interpolateboolean <optional> 
false Use interpolated values when resampling. By default, the nearest neighbor is used when resampling.