Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to override angular-leaflet-directive popup close button #1186

Open
rajmohang111 opened this issue Jun 28, 2018 · 0 comments
Open

how to override angular-leaflet-directive popup close button #1186

rajmohang111 opened this issue Jun 28, 2018 · 0 comments

Comments

@rajmohang111
Copy link

rajmohang111 commented Jun 28, 2018

I have following function to set the marker popup focus to true when user click on the marker.

$scope.$on('leafletDirectiveMarker.click', function (event, args) {
_.map($scope.markers, function (marker, i) {
$scope.markers[i].focus = false;
});
$scope.markers['m' + args.model.value.id].focus = true;
createTemplateForPopup(args.model.value);
});

Now I want to reset the marker popup focus flag to false when the user clicks on the popup close button. Right now when the user clicks on popup close button it won't disable the focus flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant