Open efibe opened 1 year ago
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",
"@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:
src/components/map-view.tsx
Hey! Sorry for the late reply. Would you mind forking the project and creating a PR with the fix?
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:
I fixed this locally by adding one line to
src/components/map-view.tsx
: