new TileSuperMapRest(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.source.TileSuperMapRest(options);
  
</script>
// ES6 Import
import { TileSuperMapRest } from '@supermapgis/iclient-ol';
new TileSuperMapRest(options);
        
        
        | Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            
            Object | 
                
                 参数。 
  | 
        
Extends
Methods
- 
    
static createTileGrid(extent, maxZoom, minZoom, tileSize, origin)
openlayers/mapping/TileSuperMapRest.js, line 338 - 
    
    
创建切片网格。
Name Type Description extentnumber 长度。
maxZoomnumber 最大的放大级别。
minZoomnumber 最小的放大级别。
tileSizenumber 瓦片的尺寸。
originnumber 原点。
 - 
    
static optionsFromMapJSON(url, mapJSONObj)
openlayers/mapping/TileSuperMapRest.js, line 310 - 
    
    
从 MapJSON 中获取参数对象。
Name Type Description urlstring 服务地址。
mapJSONObjObject 地图 JSON 对象。
 - 
    
static updateParams(params)
openlayers/mapping/TileSuperMapRest.js, line 363 - 
    
    
更新参数。
Name Type Description paramsObject 参数对象。
- Version:
 - 11.2.0
 
 - 
    
changeTilesVersion()
openlayers/mapping/TileSuperMapRest.js, line 255 - 
    
    
切换到某一版本的切片,并重绘。通过 this.tempIndex 保存需要切换的版本索引。
 - 
    
createLayerUrl()
openlayers/mapping/TileSuperMapRest.js, line 154 - 
    
    
获取新建图层地址。
 - 
    
getAllRequestParams()
openlayers/mapping/TileSuperMapRest.js, line 80 - 
    
    
获取全部请求参数。
 - 
    
getFullRequestUrl()
openlayers/mapping/TileSuperMapRest.js, line 142 - 
    
    
获取完整的请求地址。
 - 
    
lastTilesVersion()
openlayers/mapping/TileSuperMapRest.js, line 237 - 
    
    
请求上一个版本切片,并重新绘制。
 - 
    
mergeTileVersionParam(version){boolean}
openlayers/mapping/TileSuperMapRest.js, line 294 - 
    
    
更改 URL 请求参数中的切片版本号,并重绘。
Name Type Description versionObject 版本信息。
Returns:
Type Description boolean 是否成功。  - 
    
nextTilesVersion()
openlayers/mapping/TileSuperMapRest.js, line 246 - 
    
    
请求下一个版本切片,并重新绘制。
 - 
    
setTileSetsInfo(tileSets)
openlayers/mapping/TileSuperMapRest.js, line 215 - 
    
    
设置瓦片集信息。
Name Type Description tileSetsObject 瓦片集合。
 - 
    
updateCurrentTileSetsIndex(index)
openlayers/mapping/TileSuperMapRest.js, line 285 - 
    
    
更新当前切片集索引,目前主要提供给控件使用。
Name Type Description indexnumber 索引号。