@fleet-frontend/mower-maps 0.2.0-beta.26 → 0.2.0-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -20865,16 +20865,7 @@ modelType, mapRef, mapJson, pathJson, realTimeData, antennaConfig, onMapLoad, on
20865
20865
  useEffect(() => {
20866
20866
  if (!mapJson)
20867
20867
  return;
20868
- const validBounds = getValidGpsBounds(mapJson, 0);
20869
- // 地图数据中的坐标格式是 [longitude, latitude]
20870
- const swLat = validBounds.sw[1];
20871
- const swLng = validBounds.sw[0];
20872
- const neLat = validBounds.ne[1];
20873
- const neLng = validBounds.ne[0];
20874
- const googleBounds = new window.google.maps.LatLngBounds(new window.google.maps.LatLng(swLat, swLng), // 西南角
20875
- new window.google.maps.LatLng(neLat, neLng) // 东北角
20876
- );
20877
- mapRef.fitBounds(googleBounds);
20868
+ fitBounds();
20878
20869
  }, [mapJson]);
20879
20870
  // 外部控制方法
20880
20871
  // 提供ref方法
package/dist/index.js CHANGED
@@ -20885,16 +20885,7 @@ modelType, mapRef, mapJson, pathJson, realTimeData, antennaConfig, onMapLoad, on
20885
20885
  React.useEffect(() => {
20886
20886
  if (!mapJson)
20887
20887
  return;
20888
- const validBounds = getValidGpsBounds(mapJson, 0);
20889
- // 地图数据中的坐标格式是 [longitude, latitude]
20890
- const swLat = validBounds.sw[1];
20891
- const swLng = validBounds.sw[0];
20892
- const neLat = validBounds.ne[1];
20893
- const neLng = validBounds.ne[0];
20894
- const googleBounds = new window.google.maps.LatLngBounds(new window.google.maps.LatLng(swLat, swLng), // 西南角
20895
- new window.google.maps.LatLng(neLat, neLng) // 东北角
20896
- );
20897
- mapRef.fitBounds(googleBounds);
20888
+ fitBounds();
20898
20889
  }, [mapJson]);
20899
20890
  // 外部控制方法
20900
20891
  // 提供ref方法
@@ -1 +1 @@
1
- {"version":3,"file":"MowerMapRenderer.d.ts","sourceRoot":"","sources":["../../src/render/MowerMapRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAef,OAAO,EAGL,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AA2B3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AA8FD,eAAO,MAAM,gBAAgB,mGA+sB5B,CAAC;AAIF,eAAe,gBAAgB,CAAC;AAChC,YAAY,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"MowerMapRenderer.d.ts","sourceRoot":"","sources":["../../src/render/MowerMapRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAef,OAAO,EAGL,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AA2B3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AA8FD,eAAO,MAAM,gBAAgB,mGAmsB5B,CAAC;AAIF,eAAe,gBAAgB,CAAC;AAChC,YAAY,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleet-frontend/mower-maps",
3
- "version": "0.2.0-beta.26",
3
+ "version": "0.2.0-beta.27",
4
4
  "type": "module",
5
5
  "description": "a mower maps in google maps",
6
6
  "main": "dist/index.js",