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 354 -
Sets whether to render reprojection edges or not (usually for debugging).
Name Type Description renderboolean Render the edges.
-
setTileGridForProjection(projection, tilegrid)
source/TileImage.js, line 378 -
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 projectionmodule:ol/proj~ProjectionLike Projection.
tilegridmodule:ol/tilegrid/TileGrid~TileGrid Tile grid to use for the projection.
OpenLayers