fix LatLng --> point for perspective views

This commit is contained in:
Ansis Brammanis
2015-08-20 18:50:17 -04:00
parent 99c5976498
commit 51c93867ae
6 changed files with 86 additions and 108 deletions

View File

@@ -304,11 +304,11 @@ const LatLng Map::latLngForProjectedMeters(const ProjectedMeters projectedMeters
}
const vec2<double> Map::pixelForLatLng(const LatLng latLng) const {
return transform->getState().pixelForLatLng(latLng);
return transform->getState().latLngToPoint(latLng);
}
const LatLng Map::latLngForPixel(const vec2<double> pixel) const {
return transform->getState().latLngForPixel(pixel);
return transform->getState().pointToLatLng(pixel);
}
#pragma mark - Annotations