iclient中的SuperMap.Geometry.Polygon对象没有distanceTo方法,帮助文档中是有的
使用产品:iclient
数据类型: oracle 11g x64 或 文件型
convertPolygon(points) {
if (!Cesium || !SuperMap || !points) {
throw new Error('undefined')
}
if (points && points instanceof Array && points.length >= 3) {
let arr = []
for (let i = 0, j = points.length; i < j; i++) {
let point = this.convertPoint(points[i])
if (point) {
arr.push(point)
}
}
let linearRing = new SuperMap.Geometry.LinearRing(arr)
return new SuperMap.Geometry.Polygon(linearRing)
}
return undefined
},