Better zoom to location on address selection
This commit is contained in:
parent
e56e83161b
commit
beb6d9d066
2 changed files with 15 additions and 13 deletions
|
|
@ -530,6 +530,9 @@ function doAddressSelected(address: Address) {
|
|||
console.error("No geometry on address", address);
|
||||
return;
|
||||
}
|
||||
if (currentCamera.value) {
|
||||
currentCamera.value.zoom = 15;
|
||||
}
|
||||
marker.value = {
|
||||
color: "#FF0000",
|
||||
draggable: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue