react-native-maps icon indicating copy to clipboard operation
react-native-maps copied to clipboard

Non-interactive markers

Open danvass opened this issue 10 years ago • 3 comments

Is it possible to set markers to not be interactive and be just like an object "painted" onto the map so that they don't register any click events and it is as if you're interacting with the map if you try click on them?

danvass avatar Jul 23 '16 05:07 danvass

@DVassilev in a way I'd like to do this. What I'd like is to overwrite the default on click function of the markers. Right now it animates to the marker in the center, and I'd like to animate the marker to the bottom of screen. I'm having some problems trying to do that smoothly since it seems I can't turn off the default action.

gravitinos avatar Aug 16 '16 21:08 gravitinos

+1 would also like to override.

julienvincent avatar Aug 26 '16 20:08 julienvincent

I found a way to make the marker not respond to any events by doing the following:

<Marker pointerEvents="none" ...otherProps>

danvass avatar Aug 31 '16 06:08 danvass