Skip to content

Commit 23864fb

Browse files
committed
Add resize of map when recycle map instance
1 parent a82dcee commit 23864fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coffee/directives/api/map.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ angular.module('uiGmapgoogle-maps.directives.api')
106106

107107
if attrs.recycleMapInstance == 'true'
108108
_gMap = uiGmapGoogleMapObjectManager.createMapInstance(el.find('div')[1], mapOptions)
109+
google.maps.event.trigger(_gMap, 'resize')
109110
else
110111
_gMap = new google.maps.Map(el.find('div')[1], mapOptions)
111112
_gMap['uiGmap_id'] = uiGmapuuid.generate()

0 commit comments

Comments
 (0)