Expo Maps (Android): onCircleClick should also return click coordinates
Jean Coquet
In Expo Maps on Android, the onCircleClick callback currently only returns the data of the circle that was clicked. While this makes it possible to identify which circle triggered the event, it does not expose the actual coordinates where the user clicked on the map.
It would be very useful if onCircleClick also returned the latitude and longitude of the click location.
Example usage:
<GoogleMaps.View
onCircleClick={(event) => {
const { circle, coordinates } = event;
console.log(circle.id);
console.log(coordinates.latitude, coordinates.longitude);
}}
/>
Proposed event structure:
export type GoogleMapsCircleClickEvent = {
circle: GoogleMapsCircle;
coordinates: Coordinates;
};
onCircleClick?: (event: GoogleMapsCircleClickEvent) => void;
Nishan Bende
Hi Jean Coquet Eliot Gevers Thanks for suggestion. Made a PR that adds click coordinates in
onCircleClick
event https://github.com/expo/expo/pull/43835