wenhongquan 3 年之前
父节点
当前提交
141c2fce05
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/components/MarkerMap/index.tsx

+ 5 - 1
src/components/MarkerMap/index.tsx

@@ -927,7 +927,11 @@ export default defineComponent({
         return;
       }
 
-      const locations = state.positions.map((i) => i.split(',').map(Number));
+      const locations = state.positions
+        .filter(
+          (i) => i.indexOf('0E-12') == -1 && parseFloat(i.split(',')[0]) > 100,
+        )
+        .map((i) => i.split(',').map(Number));
 
       const leftTop = locations.reduce((carry, next) => {
         if (carry.length === 0) return next;