refactor(drawings): reduced the zoom of the go to drawing feature

This commit is contained in:
MarcoJayUsai 2025-03-28 19:16:09 +01:00
parent 0452a8081b
commit 0558227ce6

View File

@ -170,7 +170,7 @@ export function DrawingMenu(props: { open: boolean; onClose: () => void }) {
onClick={() => {
const latLng = drawing.getLayer()["getLatLng"] && drawing.getLayer()["getLatLng"]();
const bounds = drawing.getLayer()["getBounds"] && drawing.getLayer()["getBounds"]();
latLng && getApp().getMap().setView(latLng, 14);
latLng && getApp().getMap().setView(latLng, 10);
bounds && getApp().getMap().fitBounds(bounds);
}}
/>