I have make a bounds of type google.map.LatLngBounds using all markers shown in my map (using the extend method). I see that the bounds object is correct, it contains the maxima and minima of my markers coordinates.
I feed the data to options.map.bounds (options.map.bounds = getBounds(); getBounds is a function that returns bounds based on all marker). But the map will not fit the view to my markers. Any other way in angular-gm to fit view based on markers shown in map?
you can use the gm-bounds attribute to bind the map's bounds to a scope variable
then all you have to do is set that scope variable to the google.maps.LatLngBounds you want
I have make a bounds of type google.map.LatLngBounds using all markers shown in my map (using the extend method). I see that the bounds object is correct, it contains the maxima and minima of my markers coordinates.
I feed the data to options.map.bounds (options.map.bounds = getBounds(); getBounds is a function that returns bounds based on all marker). But the map will not fit the view to my markers. Any other way in angular-gm to fit view based on markers shown in map?