This documentation is for OpenLayers v
10.6.1. The
latestis v
.
ol/source/DataTileData tile loading function. The function is called with z, x, and y tile coordinates and returns data
for a tile or a promise for the same.
signal
AbortSignal
An abort controller signal.
crossOrigin
CrossOriginAttribute | undefined
The cross-origin attribute for images.
maxY
number | undefined
The maximum y coordinate at the given z level. Will be undefined if the underlying tile grid does not have a known extent.
loader
Loader | undefined
Data loader. Called with z, x, and y tile coordinates. Returns data
for a tile or a promise for the same. For loaders that generate images, the promise should not resolve until the image is loaded.
attributions
AttributionLike | undefined
Attributions.
attributionsCollapsible
boolean
Attributions are collapsible.
maxZoom
number
Optional max zoom level. Not used if tileGrid
is provided.
minZoom
number
Optional min zoom level. Not used if tileGrid
is provided.
tileSize
number | Size
The pixel width and height of the source tiles. This may be different than the rendered pixel size if a tileGrid
is provided.
gutter
number
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
.
maxResolution
number | undefined
Optional tile grid resolution at level zero. Not used if tileGrid
is provided.
projection
ProjectionLike
Tile projection.
tileGrid
TileGrid | undefined
Tile grid.
state
State | undefined
The source state.
wrapX
boolean
Render tiles beyond the antimeridian.
transition
number | undefined
Transition time when fading in new tiles (in milliseconds).
bandCount
number
Number of bands represented in the data.
interpolate
boolean
Use interpolated values when resampling. By default, the nearest neighbor is used when resampling.
crossOrigin
CrossOriginAttribute
The crossOrigin property to pass to loaders for image data.
key
string | undefined
Key for use in caching tiles.
zDirection
number | NearestDirectionFunction
Choose whether to use tiles with a higher or lower zoom level when between integer zoom levels. See getZForResolution
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4