As I said in title. I dont know why my google map shows only 50% of the container div.
You can see it here: http://sudarquitectura.com.ar/
please click in the third button which says: "UBICACION". It is a single and simple html page, so you can see the code there.
It is supossed that the info window should be at the center of the container div but it appears alw开发者_运维知识库ays at the left edge.
Thanks a lot!
First specify a width and a height for you map container div if you don't already in your CSS.
Then try google.maps.event.trigger(map, 'resize')
which is taken from here from the events section.
Also check these stack overflow questions
- Google Maps API - Resizing generates blank white space
- How do I resize a Google Map with JavaScript after it has loaded?
- Google Map shows only partially
精彩评论