Class: TileSuperMapRest

ol.source.TileSuperMapRest

The source SuperMap iServer TileImage

new ol.source.TileSuperMapRest(options)

TileSuperMapRest.js, line 14
Name Type Description
options Object

parameters.

Name Type Default Description
url string

The url of the service

tileGrid ol.tilegrid.TileGrid | ol.tilegrid.TileGrid optional

Tile mesh object. When not specified, it will be generated by options.extent or projection range.

serverType SuperMap.ServerType ServerType.ISERVER optional

Type of server iServer|iPortal|online.

redirect boolean false optional

Whether redirect or not.

transparent boolean true optional

Whether the tiles are transparent.

cacheEnabled boolean true optional

Weather cache is enabled.

prjCoordSys Object optional

The coordinate reference system for the requested map. For instance: prjCoordSys={"epsgCode":3857}.

layersID string optional

Get the map layer ID to be sliced, which is the layer that specifies the slice of the map. It can be a temporary layer set or a combination of layers in the current map.

clipRegionEnabled boolean false optional

Whether map clipping is enabled.

clipRegion ol.geom.Geometry | ol.geom.Geometry optional

The map shows the cropped area. This parameter is a polygon object and valid when clipRegionEnabled = true. the map only shows the part covered by the area.

overlapDisplayed boolean false optional

Whether it is overlapped when map objects are in the same range.

overlapDisplayedOptions SuperMap.OverlapDisplayedOptions optional

The filter options for avoiding overlapped display of map objects.

tileversion string optional

The name of tile version. It is valid when cacheEnabled is true.

tileProxy string optional

Enable managed addresses.

format string 'png' optional

The tile representation type supports four expression types "png", "bmp", "jpg" and "gif".

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.