nativescript-community / nativescript-community/ui-mapbox
onMapClickListener doesn't fire on IOS
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 38
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
What?
The mapView.onMapClickListener(...) does not fire on iOS however the same code works on Android.
version: "@nativescript-community/ui-mapbox": "^6.2.31"
await this.mapboxView?.setOnMapClickListener((position: LatLng) =>
callback(position)
);
await callback(position:LatLng) {
console.log('click');
reutrn true;
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using @nativescript-community/ui-mapbox version ^6.2.31 and the mapView.setOnMapClickListener entry point. Compare the iOS behavior with Android, then trace the iOS handling for mapView.onMapClickListener. Done means the callback fires on iOS when the map is clicked, as it does on Android.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100