new ol.source.TileSuperMapRest(options)
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
parameters.
|
Extends
- ol.source.TileImage
Methods
-
ol.source.TileSuperMapRest.createTileGrid(extent, maxZoom, minZoom, tileSize, origin)
TileSuperMapRest.js, line 400 -
Create the tile grid.
Name Type Description extentnumber The length.
maxZoomnumber The maximum zoom level.
minZoomnumber The minimum zoom level.
tileSizenumber The tile size.
originnumber The origin.
-
ol.source.TileSuperMapRest.optionsFromMapJSON(url, mapJSONObj)
TileSuperMapRest.js, line 346 -
Get the parameters from the MapJSON.
Name Type Description urlstring The url.
mapJSONObjObject The MapJSON.
-
changeTilesVersion()
TileSuperMapRest.js, line 291 -
Change to one tile version and redraw.Save the version index by this.tempIndex that needs to be turned.
-
createLayerUrl()
TileSuperMapRest.js, line 180 -
Get the url of the created layer.
-
getAllRequestParams()
TileSuperMapRest.js, line 111 -
Get all request parameters.
-
getFullRequestUrl()
TileSuperMapRest.js, line 168 -
Get a full request url.
-
getRequestParamString()
TileSuperMapRest.js, line 191 -
Get the string of the request parameters.
-
lastTilesVersion()
TileSuperMapRest.js, line 273 -
Request the last tile version and redraw.
-
mergeTileVersionParam(version){boolean}
TileSuperMapRest.js, line 330 -
Change the number of version from the url request and redraw.
Name Type Description versionObject The version information.
Returns:
Type Description boolean Whether it is successful or not. -
nextTilesVersion()
TileSuperMapRest.js, line 282 -
Request the next tile version and redraw.
-
setTileSetsInfo(tileSets)
TileSuperMapRest.js, line 251 -
Set tile sets.
Name Type Description tileSetsObject The tile sets.
-
updateCurrentTileSetsIndex(index)
TileSuperMapRest.js, line 321 -
Update the current tile sets index, It is currently mainly used for controls.
Name Type Description indexnumber The index.