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 layerol.layer.Vector ol图层
-
createLayer(type, layerInfo)
openlayers/mapping/WebMap.js, line 187 -
创建图层
Name Type Description typestring 图层类型
layerInfoObject 图层信息
-
createLayersByJson(layersJson)
openlayers/mapping/WebMap.js, line 80 -
通过json创建图层
Name Type Description layersJsonJSON 图层的json信息
-
createMarkersLayer(layerInfo){ol.layer.Vector}
openlayers/mapping/WebMap.js, line 340 -
创建图标图层
Name Type Description layerInfoObject 图层信息
Returns:
Type Description ol.layer.Vector 返回Marker图层对象 -
createTiandituLayer(layerInfo, epsgCode){ol.layer.Tile}
openlayers/mapping/WebMap.js, line 320 -
创建天地图图层
Name Type Description layerInfoObject 图层信息
epsgCodenumber epsg编码
Returns:
Type Description ol.layer.Tile 获取天地图的图层 -
createVectorLayer(layerInfo){ol.layer.Vector}
openlayers/mapping/WebMap.js, line 362 -
创建矢量要素图层
Name Type Description layerInfoObject 图层信息
Returns:
Type Description ol.layer.Vector 返回矢量要素图层对象 -
createWmsLayer(layerInfo){ol.layer.Tile}
openlayers/mapping/WebMap.js, line 419 -
创建Wms图层
Name Type Description layerInfoObject 图层信息
Returns:
Type Description ol.layer.Tile 返回Wms图层对象 -
getResolutionsFromScales(scales, dpi, units, datum)
openlayers/mapping/WebMap.js, line 168 -
通过比例尺获取分辨率
Name Type Description scalesArray.<number> 排序比例尺数组
dpinumber 屏幕分辨率
unitsstring 地图的单位
datumSuperMap.Datum 大地参照系类
-
getWmtsResolutionsAndMatrixIds(wellKnownScaleSet, units, scales, mapOrigin, mapExtent)
openlayers/mapping/WebMap.js, line 287 -
获取WMTS图层的分辨率数组和标识矩阵
Name Type Description wellKnownScaleSetObject 图层的分辨率数据集
unitsObject 地图的单位元
scalesArray.<number> 排序比例尺数组
mapOriginObject 原始地图
mapExtentObject 地图的程度
-
load()
openlayers/mapping/WebMap.js, line 55 -
登陆窗口后添加地图图层