new ol.source.ImageSuperMapRest(options)
openlayers/mapping/ImageSuperMapRest.js, line 15
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
Extends
Methods
-
ol.source.ImageSuperMapRest.createTileGrid(extent, maxZoom, minZoom, tileSize, origin){ol.tilegrid.TileGrid}
openlayers/mapping/ImageSuperMapRest.js, line 238 -
创建网格切片。
Name Type Description extentnumber 长度。
maxZoomnumber 最大的放大级别。
minZoomnumber 最小的放大级别。
tileSizenumber 瓦片的尺寸。
originnumber 原点。
Returns:
Type Description ol.tilegrid.TileGrid 创建的网格切片 -
ol.source.ImageSuperMapRest.optionsFromMapJSON(url, mapJSONObj)
openlayers/mapping/ImageSuperMapRest.js, line 184 -
获取地图 JSON 信息。
Name Type Description urlstring 地址。
mapJSONObjObject 地图 JSON。
-
appendCredential(url, serverType){string}
openlayers/mapping/ImageSuperMapRest.js, line 55 -
添加凭据。
Name Type Default Description urlstring 地址。
serverTypeObject SuperMap.ServerType.ISERVER 可选 服务类型 iServer|iPortal|online。
Returns:
Type Description string 添加生成后的新地址。 -
tileUrlFunction(tileCoord, pixelRatio, projection){string}
openlayers/mapping/ImageSuperMapRest.js, line 153 -
瓦片地址参数。
Name Type Description tileCoordObject 瓦片坐标系。
pixelRatioObject 像素密度。
projectionstring 投影参考系。
Returns:
Type Description string 返回瓦片地址参数