mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
refactor(drawings): reduced the zoom of the go to drawing feature
This commit is contained in:
parent
0452a8081b
commit
0558227ce6
@ -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);
|
||||
}}
|
||||
/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user