new ObliqueTileImage(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
Mapspace.oblique.source.ObliqueTileImageOptions |
- Source:
- mapspace-oblique/source/obliquetileimage.js
Extends
- ol.source.TileImage
Methods
-
getBlackMode()
-
Return if black mode is enabled or disabled. Black mode is a mode that return undefined for ULRs so tiles are not rendered even if they exist.
- Source:
- mapspace-oblique/source/obliquetileimage.js
Returns:
- Type
- boolean
-
getMaxZoomTileCoord(z, x, y)
-
Returns the TileCoord of the oblique maximum zoom level if z coordinate is above the maximum zoom level, or the same as input if not. The maximum zoom level in an oblique is the one that shows the image at best possible resolution. There can be extra zoom levels, but those are a resampling of resolution at maximum zoom level.
Parameters:
Name Type Description z
number The input TileCoord z value.
x
number The input TileCoord x value.
y
number The input TileCoord y value.
- Source:
- mapspace-oblique/source/obliquetileimage.js
Returns:
The resulting TileCoord.
- Type
- ol.TileCoord
-
getObliqueImage()
-
Gets the oblique image.
- Source:
- mapspace-oblique/source/obliquetileimage.js
Returns:
-
getServerTileCoord(tileCoord)
-
Returns the TileCoord in the server for a given TileCoord in the viewer. In the viewer TileCoord follows the usual OpenLayers coordinates, with z starting at zero and increasing with zoom, x always positive and y always negative and starting at -1. In the server tiles are numbered in a different way. The max zoom is always 1 and zoom levels increase towards min zoom. Also y values are always positive.
Parameters:
Name Type Description tileCoord
ol.TileCoord TileCoord in the viewer.
- Source:
- mapspace-oblique/source/obliquetileimage.js
Returns:
TileCoord in the server.
- Type
- ol.TileCoord
-
setBlackMode(mode)
-
Set black mode. Black mode is a mode that return undefined for ULRs so tiles are not rendered even if they exist.
Parameters:
Name Type Description mode
boolean True or false to indicate if black mode must be enabled or disabled.
- Source:
- mapspace-oblique/source/obliquetileimage.js