开发者

google map displaced and shows only until 50% of the container

开发者 https://www.devze.com 2023-02-01 10:35 出处:网络
As I said in title. I dont know why my google map shows only 50% of the container div. You can see it here:

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

  1. Google Maps API - Resizing generates blank white space
  2. How do I resize a Google Map with JavaScript after it has loaded?
  3. Google Map shows only partially
0

精彩评论

暂无评论...
验证码 换一张
取 消