Explorar el Código

修复多边形区域高度显示的 bug

wd hace 7 años
padre
commit
cac9862da0
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      index.js

+ 3 - 2
index.js

@@ -774,7 +774,7 @@ export function polygonContent(airspaceInfo, type=3) {
 
         let content = [res.join('、')]
         content.push(`${airspaceInfo.points.length}点连线范围内`)
-        content.push(`, ${getHeight(airspaceInfo.altitude, airspaceInfo.unit, type)}`)
+        content.push(`${getHeight(airspaceInfo.altitude, airspaceInfo.unit, type)}`)
         if(isSafeString(airspaceInfo.note)) {
             content.push(`,备注:${airspaceInfo.note}`)
         }
@@ -789,7 +789,8 @@ export function polygonContent(airspaceInfo, type=3) {
             c += `(E${obj.lng}, N${obj.lat})`
             content.push(c)
         }
-        content = content.join('、') + `${length}点连线范围内,${airspaceInfo.heightStandard}${airspaceInfo.height}米`
+        content = content.join('、') + `${length}点连线范围内`
+        content += `,${getHeight(airspaceInfo.height, airspaceInfo.heightStandard, type}`
         if (airspaceInfo.note)
             content = `${content},备注:${airspaceInfo.note}`
         return content;