diff options
Diffstat (limited to 'platform/android/jni.cpp')
-rw-r--r-- | platform/android/jni.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/android/jni.cpp b/platform/android/jni.cpp index 1e4c4c05f3..9b80013da2 100644 --- a/platform/android/jni.cpp +++ b/platform/android/jni.cpp @@ -1186,9 +1186,7 @@ jlongArray JNICALL nativeGetAnnotationsInBounds(JNIEnv *env, jobject obj, jlong return nullptr; } - mbgl::LatLngBounds bounds; - bounds.sw = { swLat, swLon }; - bounds.ne = { neLat, neLon }; + mbgl::LatLngBounds bounds({ swLat, swLon }, { neLat, neLon }); // assume only points for now std::vector<uint32_t> annotations = nativeMapView->getMap().getPointAnnotationsInBounds(bounds); |