new ol.source.ImageSuperMapRest(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
options.
|
Extends
- ol.source.TileImage
Methods
-
ol.source.ImageSuperMapRest.createTileGrid(extent, maxZoom, minZoom, tileSize, origin){ol.tilegrid.TileGrid}
ImageSuperMapRest.js, line 235 -
Create tile grid.
Name Type Description extent
number The length.
maxZoom
number The maximum zoom level.
minZoom
number the minimum zoom level.
tileSize
number The tile size.
origin
number Origin.
Returns:
Type Description ol.tilegrid.TileGrid The tile grid. -
ol.source.ImageSuperMapRest.optionsFromMapJSON(url, mapJSONObj)
ImageSuperMapRest.js, line 181 -
Get map JSON.
Name Type Description url
string The url.
mapJSONObj
Object The map JSON.
-
appendCredential(url, serverType){string}
ImageSuperMapRest.js, line 52 -
Add credential.
Name Type Default Description url
string The url.
serverType
Object SuperMap.ServerType.ISERVER optional Type of server iServer|iPortal|online.
Returns:
Type Description string New url after generation -
tileUrlFunction(tileCoord, pixelRatio, projection){string}
ImageSuperMapRest.js, line 150 -
The tile url.
Name Type Description tileCoord
Object The tile coordinate system.
pixelRatio
Object The density of the pixel.
projection
string The projection reference system.
Returns:
Type Description string Return the tile url.