File tree 2 files changed +6
-6
lines changed
app/views/examples/windows
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
< div id ="map_canvas " ng-controller ="mainCtrl ">
2
2
< ui-gmap-google-map center ="map.center " zoom ="map.zoom " draggable ="true " options ="options " bounds ="map.bounds ">
3
- < ui-gmap-markers models ="randomMarkers " coords ="'self' " icon ="'icon' " click ="' onClick' ">
3
+ < ui-gmap-markers models ="randomMarkers " coords ="'self' " icon ="'icon' " click ="onClick ">
4
4
< ui-gmap-windows show ="show ">
5
5
< div ng-non-bindable > {{title}}</ div >
6
6
</ ui-gmap-windows >
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ angular.module('appMaps', ['uiGmapgoogle-maps'])
20
20
title : 'm' + i ,
21
21
show : false
22
22
} ;
23
- ret . onClick = function ( ) {
24
- console . log ( "Clicked!" ) ;
25
- ret . show = ! ret . show ;
26
- } ;
27
23
ret [ idKey ] = i ;
28
24
return ret ;
29
25
} ;
26
+ $scope . onClick = function ( model ) {
27
+ console . log ( "Clicked!" ) ;
28
+ model . show = ! model . show ;
29
+ } ;
30
30
$scope . randomMarkers = [ ] ;
31
31
// Get the bounds from the map once it's loaded
32
32
$scope . $watch ( function ( ) { return $scope . map . bounds ; } , function ( nv , ov ) {
@@ -39,4 +39,4 @@ angular.module('appMaps', ['uiGmapgoogle-maps'])
39
39
$scope . randomMarkers = markers ;
40
40
}
41
41
} , true ) ;
42
- } ) ;
42
+ } ) ;
You can’t perform that action at this time.
0 commit comments