Closed web-programmer-here closed 2 years ago
Hey @web-programmer-here there's currently no auto centering/zooming functionality. I'm afraid you'll have to do it manually. Have you seen this method in the native API? Should be useful: https://developers.google.com/maps/documentation/javascript/reference/map#Map.fitBounds
Thanks @HusamIbrahim do you have any examples? I wonder if anyone else who used this library can share their findings
Hi @web-programmer-here
I haven't used that API before but a quick search turned out this helpful result on Stack Overflow: https://stackoverflow.com/q/19304574/10341614
So here's an example of what you probably can do: https://stackblitz.com/edit/vitejs-vite-4tdpur?file=src/components/HelloWorld.vue&terminal=dev
thank you, this helped a lot
If I add the markers, they are not all visible on the map, how can I make sure the markers are all visible if that means zooming out or zooming into the map? also is there any auto center without specifying auto center if we have multiple items?