wenhongquan %!s(int64=3) %!d(string=hai) anos
pai
achega
141c2fce05
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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;