|
@@ -919,7 +919,9 @@ export default defineComponent({
|
|
|
);
|
|
|
state.positions.push(...markers.map((i) => i.locations).filter(isString));
|
|
|
|
|
|
+
|
|
|
handleFitBounds();
|
|
|
+ state.map?.setZoom(11);
|
|
|
};
|
|
|
const handleFitBounds = () => {
|
|
|
if (state.positions.length === 0) {
|
|
@@ -1187,7 +1189,7 @@ export default defineComponent({
|
|
|
} else {
|
|
|
state.map?.flyTo({
|
|
|
center: [118.29564, 33.97441],
|
|
|
- zoom: 12,
|
|
|
+ zoom: 11,
|
|
|
bearing: 10,
|
|
|
pitch: 30,
|
|
|
duration: 2000,
|