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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -