We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, Is it possible get markers within the view able area when zoom in/out or when map move?
I use version : 0.7.11 on Ionic 1 app.
Thanks
The text was updated successfully, but these errors were encountered:
Use map.getBounds().contains(L.latLng())
map.getBounds().contains(L.latLng())
$scope.$watch('bounds', function(){ leafletData.getMap().then(function(map){ $scope.markersWithinBounds = $scope.markers.filter(function(marker){ return map.getBounds().contains(L.latLng(marker.lat, marker.lng)); }); }) });
plunker
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi,
Is it possible get markers within the view able area when zoom in/out or when map move?
I use version : 0.7.11 on Ionic 1 app.
Thanks
The text was updated successfully, but these errors were encountered: