Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - convert dp to pixels when getting meters per pixel at. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun authored May 26, 2017
1 parent 82a3a7e commit bc5b147
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ public double getMetersPerPixelAtLatitude(double lat) {
if (isDestroyedOn("getMetersPerPixelAtLatitude")) {
return 0;
}
return nativeGetMetersPerPixelAtLatitude(lat, getZoom());
return nativeGetMetersPerPixelAtLatitude(lat, getZoom()) / pixelRatio;
}

public ProjectedMeters projectedMetersForLatLng(LatLng latLng) {
Expand Down

0 comments on commit bc5b147

Please sign in to comment.