How to use google.maps.event.trigger(map, 'resize')

前端 未结 5 1607
無奈伤痛
無奈伤痛 2020-11-28 12:49

I am new to JS, and have found the answer to a previous question, which brought up a new question, which brought me here again.

I have a Reveal Modal that contains a

5条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 13:31

    google.maps.event.addListenerOnce(map, 'tilesloaded', function() {
                    google.maps.event.addListenerOnce(map, 'tilesloaded', function() {
                        google.maps.event.trigger(map, 'resize');
                    });
    });
    

提交回复
热议问题