Skip to content

Commit 95d61f7

Browse files
authored
Merge pull request allenhwkim#668 from Mando-Chris/master
Added a fix to allow you to specify the ngmap being used by an info-w…
2 parents 5512430 + 9b1e5c9 commit 95d61f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

directives/info-window.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@
191191
scope.showInfoWindow = mapController.map.showInfoWindow;
192192
scope.hideInfoWindow = mapController.map.hideInfoWindow;
193193

194-
NgMap.getMap().then(function(map) {
194+
var map = infoWindow.mapId ? {id:infoWindow.mapId} : 0;
195+
NgMap.getMap(map).then(function(map) {
195196
infoWindow.visible && infoWindow.__open(map, scope);
196197
if (infoWindow.visibleOnMarker) {
197198
var markerId = infoWindow.visibleOnMarker;

0 commit comments

Comments
 (0)