software-mansion-labs / expo-maps

81 stars 3 forks source link

Callbacks for Apple and Google Maps events #91

Closed behenate closed 2 years ago

behenate commented 2 years ago

Added following callbacks:

some of the callbacks weren't possible to implement (for now) due to platform differences

Callback Google Maps - Android Google Maps- iOS Apple Maps
onMapPress
onDoublePress
onLongPress
onRegionChange
onRegionChangeStarted
onRegionChangeComplete
onMapLoaded
onMarkerPress
onMarkerDrag
onMarkerDragStarted
onMarkerDragComplete
onLocationButtonPress
onLocationDotPress func mapView(_ mapView: GMSMapView, didTapMyLocation location: CLLocationCoordinate2D) doesn’t get called for some reason
onPoiClick ❌ (POIs rendered on canvas, currently impossible to detect a press)
onClusterPress
onLocationChange

Other changes

https://i.imgur.com/Q7H6KM2.mp4

behenate commented 2 years ago

Callbacks functionality finished

except for some compatibility issues

Current callbacks compatibility

Feature Google Maps - Android Google Maps- iOS Apple Maps
onMapPress
onDoublePress
onLongPress
onRegionChange
onRegionChangeStarted
onRegionChangeComplete
onMapLoaded
onMarkerPress
onMarkerDrag
onMarkerDragStarted
onMarkerDragComplete
onLocationButtonPress
onLocationDotPress func mapView(_ mapView: GMSMapView, didTapMyLocation location: CLLocationCoordinate2D) doesn’t get called for some reason
onPoiClick ❌ (POIs rendered on canvas, currently impossible to detect a press)
onClusterPress
onLocationChange