vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

Initialise a map with bounds

Open gbanfalvisk opened this issue 8 years ago • 3 comments

Hi, is there any way i can just initialise a map with bounds and set them through vue?

gbanfalvisk avatar Jul 09 '16 13:07 gbanfalvisk

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 avatar Jul 10 '16 11:07 GuillaumeLeclerc

@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.

maximecolin avatar Dec 13 '16 13:12 maximecolin

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.

maximecolin avatar Dec 13 '16 13:12 maximecolin