Google Maps API - Resizing generates blank white space

后端 未结 1 609
情书的邮戳
情书的邮戳 2021-01-15 13:46

I\'m working on what it looked to be like a very simple feature which is causing a little bit of a headache.

I work with a GIS and we integrate it with Google Maps.

相关标签:
1条回答
  • 2021-01-15 14:31

    Either you need to expand the div to the size you want before creating the map, or you need to use

    google.maps.event.trigger(map, 'resize') 
    

    to make the API aware that the size of the container has changed.

    0 讨论(0)
提交回复
热议问题