Skip to content

Commit 96052fa

Browse files
committed
Use correct markers.click arguments
Toggling an InfoWindow didn't work because $scope.onClick receives the marker object, not the model as the first argument.
1 parent b1fb028 commit 96052fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/examples/windows/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ angular.module('appMaps', ['uiGmapgoogle-maps'])
2323
ret[idKey] = i;
2424
return ret;
2525
};
26-
$scope.onClick = function(model) {
26+
$scope.onClick = function(marker, eventName, model) {
2727
console.log("Clicked!");
2828
model.show = !model.show;
2929
};

0 commit comments

Comments
 (0)