new ol.supermap.Util()
openlayers/core/Util.js, line 7
Methods
-
staticol.supermap.Util.createCanvasContext2D(opt_width, opt_height)
openlayers/core/Util.js, line 237 -
创建2D画布
Name Type Description opt_widthnumber 画布宽度
opt_heightnumber 画布高度
-
staticol.supermap.Util.Csv2GeoJSON(csv, options)
openlayers/core/Util.js, line 152 -
将 csv 格式转为 GeoJSON
Name Type Description csvObject csv 对象
optionsObject 转换参数
-
staticol.supermap.Util.isArray(obj){boolean}
openlayers/core/Util.js, line 142 -
判断是否为数组格式
Name Type Description objObject 待判断对象
Returns:
Type Description boolean 是否是数组 -
staticol.supermap.Util.resolutionToScale(resolution, dpi, mapUnit){number}
openlayers/core/Util.js, line 42 -
通过分辨率计算比例尺
Name Type Description resolutionnumber 分辨率
dpinumber 屏幕分辨率
mapUnitstring 地图单位
Returns:
Type Description number 比例尺 -
staticol.supermap.Util.scaleToResolution(scale, dpi, mapUnit){number}
openlayers/core/Util.js, line 99 -
通过比例尺计算分辨率
Name Type Description scalenumber 比例尺
dpinumber 屏幕分辨率
mapUnitstring 地图单位
Returns:
Type Description number 分辨率 -
staticol.supermap.Util.toGeoJSON(smObj)
openlayers/core/Util.js, line 17 -
将传入对象转为 GeoJSON 格式
Name Type Description smObjObject 待转参数
-
staticol.supermap.Util.toProcessingParam(points)
openlayers/core/Util.js, line 74 -
将Region节点数组转为Processing服务需要的分析参数
Name Type Description pointsRegion各个节点数组
Returns:
processing服务裁剪、查询分析的分析参数 -
staticol.supermap.Util.toSuperMapBounds(bounds){SuperMap.Bounds}
openlayers/core/Util.js, line 59 -
转为SuperMapBounds格式
Name Type Description boundsArray.<number> bounds数组
Returns:
Type Description SuperMap.Bounds 返回SuperMap的Bounds对象 -
staticol.supermap.Util.toSuperMapGeometry(geoJSON)
openlayers/core/Util.js, line 29 -
将 geoJSON 对象转为SuperMap几何图形
Name Type Description geoJSONObject geoJSON 对象