瀏覽代碼

更改限制拖动的边界

zy 1 年之前
父節點
當前提交
e5a5f4bdd5

+ 2 - 2
neim-ui/src/views/largeScreenPage/components/bigeHeatMap.vue

@@ -212,8 +212,8 @@ export default {
           }).addTo(this.bMap);
           window.geo2 = geo2;
           //限制拖动
-          this.bMap.setMaxBounds([[43.42301,124.174976],[53.561657,135.086264]]);
-          this.bMap.fitBounds([[43.42301,124.174976],[53.561657,135.086264]]);
+          this.bMap.setMaxBounds([[43.42301,122.574976],[53.561657,135.086264]]);
+          this.bMap.fitBounds([[43.42301,122.574976],[53.561657,135.086264]]);
 
           const layers = geo2.getLayers();
           for (const item of layers) {

+ 2 - 2
neim-ui/src/views/largeScreenPage/components/bigeHeatSunMap.vue

@@ -209,8 +209,8 @@ export default {
           //限制拖动
           // this.bMap.setMaxBounds(geo2.getBounds());
           // this.bMap.fitBounds(geo2.getBounds());
-          this.bMap.setMaxBounds([[43.42301,124.174976],[53.561657,135.086264]]);
-          this.bMap.fitBounds([[43.42301,124.174976],[53.561657,135.086264]]);
+          this.bMap.setMaxBounds([[43.42301,122.574976],[53.561657,135.086264]]);
+          this.bMap.fitBounds([[43.42301,122.574976],[53.561657,135.086264]]);
           const layers = geo2.getLayers();
           for (const item of layers) {
             const layer = item.feature;