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:

enter image description here

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.

  1. need reduce zoom level.
  2. manage left panel in css

Comments

Popular posts from this blog

ios - NSDateFormatter: error in converting date -

android - How to read a column value in parse.com without accessing an object or a pointer -

timer - Java TimerTask cancel -