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
In LatLngsBounds the extend method is used to combine the present bounds with another bounds: using this method
public void extend(LatLngBounds bounds) { if (bounds != null) { if (northEast == null) { northEast = new LatLng(bounds.getNorth(), bounds.getEast()); } if (southWest == null) { southWest = new LatLng(bounds.getSouth(), bounds.getWest()); } northEast.setLat(Math.max(northEast.getLat(), bounds.getSouthWest().getLat())); northEast.setLng(Math.max(northEast.getLng(), bounds.getSouthWest().getLng())); southWest.setLat(Math.min(southWest.getLat(), bounds.getNorthEast().getLat())); southWest.setLng(Math.min(southWest.getLng(), bounds.getNorthEast().getLng())); } }
I think the last 4 lines are wrong and should be:
northEast.setLat(Math.max(northEast.getLat(), bounds.getNorthEast().getLat())); northEast.setLng(Math.max(northEast.getLng(), bounds.getNorthEast().getLng())); southWest.setLat(Math.min(southWest.getLat(), bounds.getSouthWest().getLat())); southWest.setLng(Math.min(southWest.getLng(), bounds.getSouthWest().getLng()));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In LatLngsBounds the extend method is used to combine the present bounds with another bounds: using this method
I think the last 4 lines are wrong and should be:
The text was updated successfully, but these errors were encountered: