[android] fixes #5762. Passing pixel points to native jni for getting latlng.

This commit is contained in:
Bharath MG
2016-07-24 04:07:49 +05:30
parent 0e60238596
commit e16c906bbf
2 changed files with 3 additions and 3 deletions

View File

@@ -439,7 +439,7 @@ final class NativeMapView {
}
public LatLng latLngForPixel(PointF pixel) {
return nativeLatLngForPixel(mNativeMapViewPtr, pixel);
return nativeLatLngForPixel(mNativeMapViewPtr, pixel.x, pixel.y);
}
public double getTopOffsetPixelsForAnnotationSymbol(String symbolName) {
@@ -630,7 +630,7 @@ final class NativeMapView {
private native PointF nativePixelForLatLng(long nativeMapViewPtr, double lat, double lon);
private native LatLng nativeLatLngForPixel(long nativeMapViewPtr, PointF pixel);
private native LatLng nativeLatLngForPixel(long nativeMapViewPtr, float x, float y);
private native double nativeGetTopOffsetPixelsForAnnotationSymbol(long nativeMapViewPtr, String symbolName);