Classes
Type Definitions
-
CrossOriginAttribute{'anonymous'} {'use-credentials'}
-
-
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. -
LoaderOptions{Object}
-
Properties:
Name Type Description signalAbortSignal An abort controller signal.
crossOriginCrossOriginAttribute | undefined The cross-origin attribute for images.
maxYnumber | undefined The maximum y coordinate at the given z level. Will be undefined if the underlying tile grid does not have a known extent.
-
Options{Object}
-
Properties:
Name Type Description loaderLoader | undefined 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 | undefined Attributions.
attributionsCollapsibleboolean
(defaults to true)Attributions are collapsible.
maxZoomnumber
(defaults to 42)Optional max zoom level. Not used if
tileGridis provided.minZoomnumber
(defaults to 0)Optional min zoom level. Not used if
tileGridis provided.tileSizenumber | Size
(defaults to [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
(defaults to 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 | undefined Optional tile grid resolution at level zero. Not used if
tileGridis provided.projectionProjectionLike
(defaults to 'EPSG:3857')Tile projection.
tileGridTileGrid | undefined Tile grid.
stateState | undefined The source state.
wrapXboolean
(defaults to false)Render tiles beyond the antimeridian.
transitionnumber | undefined Transition time when fading in new tiles (in milliseconds).
bandCountnumber
(defaults to 4)Number of bands represented in the data.
interpolateboolean
(defaults to false)Use interpolated values when resampling. By default, the nearest neighbor is used when resampling.
crossOriginCrossOriginAttribute
(defaults to 'anonymous')The crossOrigin property to pass to loaders for image data.
keystring | undefined Key for use in caching tiles.