NativeScript / NativeScript/plugins
[@nativescript/google-maps] Marker info window not working on IOS
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 123
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Description
Hi, I tried to use custom marker info window.
First of all, Could you let me know proper way to implement this, since there is not clear instruction from documentation.
Anyway, I implemented like this, at least works on Android.
mapView.on('markerInfoWindow', (e: MarkerInfoEvent) => {
if (e.marker.userData.id === item.id) {
let infoTemplate: GridLayout = new GridLayout();
/* create a view that I want to customize manually */
...
e.view = infoTemplate;
});
marker.showInfoWindow();
At least works on Android but not on IOS.
Title & snippet from MarkerOptions, then IOS show the info on the marker.
Contributor guide
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
Start by reproducing the custom markerInfoWindow flow in @nativescript/google-maps on iOS and compare it with the Android behavior described. Check how e.view is handled when marker.showInfoWindow() is called. Done means a custom info window appears on iOS while the existing title and snippet behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100