From a3ee9ae29939bba0b42f6a34b8ba7c84e2d93efe Mon Sep 17 00:00:00 2001 From: Joonas Kerttula Date: Tue, 10 Sep 2024 16:04:36 +0300 Subject: [PATCH] fix: marker click events on android (#257) --- .../java/com/google/android/react/navsdk/NavViewFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/google/android/react/navsdk/NavViewFragment.java b/android/src/main/java/com/google/android/react/navsdk/NavViewFragment.java index cd8a003..c5f6141 100644 --- a/android/src/main/java/com/google/android/react/navsdk/NavViewFragment.java +++ b/android/src/main/java/com/google/android/react/navsdk/NavViewFragment.java @@ -113,7 +113,7 @@ public void onMapReady(GoogleMap googleMap) { mGoogleMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { - emitEvent("onMapReady", ObjectTranslationUtil.getMapFromMarker(marker)); + emitEvent("onMarkerClick", ObjectTranslationUtil.getMapFromMarker(marker)); return false; } }); @@ -145,7 +145,7 @@ public void onGroundOverlayClick(GroundOverlay groundOverlay) { mGoogleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() { @Override public void onInfoWindowClick(Marker marker) { - emitEvent("onInfoWindowClick", ObjectTranslationUtil.getMapFromMarker(marker)); + emitEvent("onMarkerInfoWindowTapped", ObjectTranslationUtil.getMapFromMarker(marker)); } });