vue-google-maps
vue-google-maps copied to clipboard
Initialise a map with bounds
Hi, is there any way i can just initialise a map with bounds and set them through vue?
Hello,
Thank you for your question: as said here (https://github.com/GuillaumeLeclerc/vue-google-maps/wiki/Map) there is a bounds attribute you can set with vue
@GuillaumeLeclerc Can you detail a bit more the object expected by the bound props ?
I tried something like :bounds="{ ne: { lat: xx, lng: xx }, sw: { lat: xx, lng: xx } }"
but it seems to be the wrong format.
I tried to set bounds props with a Google Maps bounds object (from another map), no error but the map does not fit the bounds.