add smooth zoom when not selecting a route
This commit is contained in:
@@ -52,6 +52,7 @@ watchEffect(async () => {
|
|||||||
};
|
};
|
||||||
const firstPoint = shownClusters.value.features[0];
|
const firstPoint = shownClusters.value.features[0];
|
||||||
if (!firstPoint) {
|
if (!firstPoint) {
|
||||||
|
map.map?.flyTo({ center, zoom });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const coordinates = [
|
const coordinates = [
|
||||||
|
|||||||
Reference in New Issue
Block a user