Merge pull request #1926 from trappsnl/master

fix latLngForPixel on Android
This commit is contained in:
Justin R. Miller
2015-07-28 17:55:05 -07:00

View File

@@ -1090,13 +1090,13 @@ jobject JNICALL nativeLatLngForPixel(JNIEnv *env, jobject obj, jlong nativeMapVi
assert(nativeMapViewPtr != 0);
NativeMapView *nativeMapView = reinterpret_cast<NativeMapView *>(nativeMapViewPtr);
jfloat x = env->GetDoubleField(pixel, pointFXId);
jfloat x = env->GetFloatField(pixel, pointFXId);
if (env->ExceptionCheck()) {
env->ExceptionDescribe();
return nullptr;
}
jfloat y = env->GetDoubleField(pixel, pointFYId);
jfloat y = env->GetFloatField(pixel, pointFYId);
if (env->ExceptionCheck()) {
env->ExceptionDescribe();
return nullptr;