new TileImage(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Image tile options.
|
Fires:
-
tileloadend
(module:ol/source/Tile~TileSourceEvent) - Triggered when a tile finishes loading, either when its data is loaded, or when loading was aborted because the tile is no longer needed. -
tileloaderror
(module:ol/source/Tile~TileSourceEvent) - Triggered if tile loading results in an error. -
tileloadstart
(module:ol/source/Tile~TileSourceEvent) - Triggered when a tile starts loading.
Methods
-
setRenderReprojectionEdges(render)
source/TileImage.js, line 355 -
Sets whether to render reprojection edges or not (usually for debugging).
Name Type Description render
boolean Render the edges.
-
setTileGridForProjection(projection, tilegrid)
source/TileImage.js, line 379 -
Sets the tile grid to use when reprojecting the tiles to the given projection instead of the default tile grid for the projection.
This can be useful when the default tile grid cannot be created (e.g. projection has no extent defined) or for optimization reasons (custom tile size, resolutions, ...).
Name Type Description projection
module:ol/proj~ProjectionLike Projection.
tilegrid
module:ol/tilegrid/TileGrid~TileGrid Tile grid to use for the projection.