Google Map V3 - Set map bounds -
when plot route in google maps v3, i'm able push coordinates bounds object , map zoom level shows entire route. i'm able set center of map equal middle of route:
var bounds = new google.maps.latlngbounds(); bounds.extend(latlng); //do each coordinate map.fitbounds(bounds); map.setcenter(bounds.getcenter());
however, i've added overlay on left. map 100% screenwidth , goes underneath overlay:
is possible set map boundaries match visible? (i've highlighted mean green border) , there make sure entire route visible right of overlay?
i hope makes sense. google manage accomplish on map site.
- need reduce zoom level.
- manage left panel in css
Comments
Post a Comment