new ol.supermap.WebMap(id, options)
openlayers/mapping/WebMap.js, line 25
Name | Type | Description |
---|---|---|
id |
string |
iPortal|Online 地图ID |
options |
Object |
参数。如: |
Extends
Methods
-
addLayer(layer)
openlayers/mapping/WebMap.js, line 138 -
添加图层
Name Type Description layer
ol.layer.Vector ol图层
-
createLayer(type, layerInfo)
openlayers/mapping/WebMap.js, line 187 -
创建图层
Name Type Description type
string 图层类型
layerInfo
Object 图层信息
-
createLayersByJson(layersJson)
openlayers/mapping/WebMap.js, line 80 -
通过json创建图层
Name Type Description layersJson
JSON 图层的json信息
-
createMarkersLayer(layerInfo){ol.layer.Vector}
openlayers/mapping/WebMap.js, line 340 -
创建图标图层
Name Type Description layerInfo
Object 图层信息
Returns:
Type Description ol.layer.Vector 返回Marker图层对象 -
createTiandituLayer(layerInfo, epsgCode){ol.layer.Tile}
openlayers/mapping/WebMap.js, line 320 -
创建天地图图层
Name Type Description layerInfo
Object 图层信息
epsgCode
number epsg编码
Returns:
Type Description ol.layer.Tile 获取天地图的图层 -
createVectorLayer(layerInfo){ol.layer.Vector}
openlayers/mapping/WebMap.js, line 362 -
创建矢量要素图层
Name Type Description layerInfo
Object 图层信息
Returns:
Type Description ol.layer.Vector 返回矢量要素图层对象 -
createWmsLayer(layerInfo){ol.layer.Tile}
openlayers/mapping/WebMap.js, line 419 -
创建Wms图层
Name Type Description layerInfo
Object 图层信息
Returns:
Type Description ol.layer.Tile 返回Wms图层对象 -
getResolutionsFromScales(scales, dpi, units, datum)
openlayers/mapping/WebMap.js, line 168 -
通过比例尺获取分辨率
Name Type Description scales
Array.<number> 排序比例尺数组
dpi
number 屏幕分辨率
units
string 地图的单位
datum
SuperMap.Datum 大地参照系类
-
getWmtsResolutionsAndMatrixIds(wellKnownScaleSet, units, scales, mapOrigin, mapExtent)
openlayers/mapping/WebMap.js, line 287 -
获取WMTS图层的分辨率数组和标识矩阵
Name Type Description wellKnownScaleSet
Object 图层的分辨率数据集
units
Object 地图的单位元
scales
Array.<number> 排序比例尺数组
mapOrigin
Object 原始地图
mapExtent
Object 地图的程度
-
load()
openlayers/mapping/WebMap.js, line 55 -
登陆窗口后添加地图图层