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 extentnumber The length.
maxZoomnumber The maximum zoom level.
minZoomnumber the minimum zoom level.
tileSizenumber The tile size.
originnumber 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 urlstring The url.
mapJSONObjObject The map JSON.
-
appendCredential(url, serverType){string}
ImageSuperMapRest.js, line 52 -
Add credential.
Name Type Default Description urlstring The url.
serverTypeObject 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 tileCoordObject The tile coordinate system.
pixelRatioObject The density of the pixel.
projectionstring The projection reference system.
Returns:
Type Description string Return the tile url.