|
@@ -929,16 +929,17 @@ export default defineComponent({
|
|
|
|
|
|
|
|
|
handleFitBounds();
|
|
|
-
|
|
|
- try {
|
|
|
- state.map?.setZoom(11);
|
|
|
- state.map?.setCenter({
|
|
|
- lng: parseFloat(markers[0].locations?.split(',')[0] ?? '0'),
|
|
|
- lat: parseFloat(markers[0].locations?.split(',')[1] ?? '0'),
|
|
|
- });
|
|
|
+ if (type === '应急事件') {
|
|
|
+ try {
|
|
|
+ state.map?.setZoom(14);
|
|
|
+ state.map?.setCenter({
|
|
|
+ lng: parseFloat(markers[0].locations?.split(',')[0] ?? '0'),
|
|
|
+ lat: parseFloat(markers[0].locations?.split(',')[1] ?? '0'),
|
|
|
+ });
|
|
|
|
|
|
- } catch (E) {
|
|
|
+ } catch (E) {
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|