new ol.source.TileSuperMapRest(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
parameters.
|
Extends
Methods
-
static createTileGrid(extent, maxZoom, minZoom, tileSize, origin)
TileSuperMapRest.js, line 400 -
Create the 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 The origin.
-
static optionsFromMapJSON(url, mapJSONObj)
TileSuperMapRest.js, line 346 -
Get the parameters from the MapJSON.
Name Type Description url
string The url.
mapJSONObj
Object 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 version
Object 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 tileSets
Object 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 index
number The index.