@fleet-frontend/mower-maps 0.2.0-beta.25 → 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 +2 -11
- package/dist/index.js +2 -11
- package/dist/render/MowerMapRenderer.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -201,7 +201,7 @@ class ObstacleData extends BaseData {
|
|
|
201
201
|
this.status = originalData?.status ?? 1;
|
|
202
202
|
this.start_timestamp = originalData?.start_timestamp;
|
|
203
203
|
this.end_timestamp = originalData?.end_timestamp;
|
|
204
|
-
this.name = originalData?.name || '';
|
|
204
|
+
this.name = originalData?.name || 'Noname';
|
|
205
205
|
this.style = style;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
@@ -20865,16 +20865,7 @@ modelType, mapRef, mapJson, pathJson, realTimeData, antennaConfig, onMapLoad, on
|
|
|
20865
20865
|
useEffect(() => {
|
|
20866
20866
|
if (!mapJson)
|
|
20867
20867
|
return;
|
|
20868
|
-
|
|
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
|
@@ -221,7 +221,7 @@ class ObstacleData extends BaseData {
|
|
|
221
221
|
this.status = originalData?.status ?? 1;
|
|
222
222
|
this.start_timestamp = originalData?.start_timestamp;
|
|
223
223
|
this.end_timestamp = originalData?.end_timestamp;
|
|
224
|
-
this.name = originalData?.name || '';
|
|
224
|
+
this.name = originalData?.name || 'Noname';
|
|
225
225
|
this.style = style;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
@@ -20885,16 +20885,7 @@ modelType, mapRef, mapJson, pathJson, realTimeData, antennaConfig, onMapLoad, on
|
|
|
20885
20885
|
React.useEffect(() => {
|
|
20886
20886
|
if (!mapJson)
|
|
20887
20887
|
return;
|
|
20888
|
-
|
|
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,
|
|
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"}
|