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

onRegionChangeComplete is not triggered when user zooms in/out

Open efibe opened this issue 2 years ago • 2 comments

When the user zooms the map using the scroll wheel or the +/- buttons, onRegionChangeComplete is not being triggered.

When user pans the map by dragging, onRegionChangeComplete is being called correctly.

Current version: "@teovilla/react-native-web-maps": "^0.6.1",

I'm using the component like this:

<MapView
  style={{ flex: 1 }}
  provider="google"
  region={region}  
  onRegionChangeComplete={(reg, details) => {
    console.log({ reg, details });
    setRegion(reg);
}}>

I fixed this locally by adding one line to src/components/map-view.tsx:

image

efibe avatar Oct 17 '22 13:10 efibe

Hey! Sorry for the late reply. Would you mind forking the project and creating a PR with the fix?

teovillanueva avatar Dec 15 '22 14:12 teovillanueva

I'm also facing this issue, please can this fix be merged

leosilberg avatar Aug 25 '24 19:08 leosilberg