wenhongquan 3 vuotta sitten
vanhempi
commit
141c2fce05
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  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;