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 loadermodule:ol/source/DataTile~Loader <optional>
Data loader. Called with z, x, and y tile coordinates. Returns
datafor a tile or a promise for the same.attributionsmodule:ol/source/Source~AttributionLike <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 | module:ol/size~Size <optional>
[256, 256] The pixel width and height of the tiles.
maxResolutionnumber <optional>
Optional tile grid resolution at level zero. Not used if
tileGridis provided.projectionmodule:ol/proj~ProjectionLike <optional>
'EPSG:3857' Tile projection.
tileGridmodule:ol/tilegrid/TileGrid~TileGrid <optional>
Tile grid.
opaqueboolean <optional>
false Whether the layer is opaque.
statemodule:ol/source/State <optional>
The source state.
tilePixelRationumber <optional>
Tile pixel ratio.
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.
OpenLayers