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)); } });