Skip to content

Commit 4a0ea1b

Browse files
committed
issue allenhwkim#400, provided example for this issue
1 parent 92e3ddd commit 4a0ea1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

testapp/ui-router.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@
1717
});
1818
myapp.controller('fooCtrl', function(NgMap){
1919
NgMap.getMap({id:'foomap'}).then(function(map) {
20+
console.log('NgMap.getMap in fooCtrl', map);
2021
map.setZoom(4);
22+
var marker = new google.maps.Marker({
23+
position: new google.maps.LatLng(40.74, -74.18),
24+
map: map
25+
});
2126
});
2227
});
2328
myapp.controller('barCtrl', function(NgMap){
2429
NgMap.getMap({id:'barmap'}).then(function(map) {
30+
console.log('NgMap.getMap in barCtrl', map);
2531
map.setZoom(11);
32+
var marker = new google.maps.Marker({
33+
position: new google.maps.LatLng(41.74, -75.18),
34+
map: map
35+
});
2636
});
2737
});
2838
</script>

0 commit comments

Comments
 (0)