plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[@nativescript/google-maps] Marker info window not working on IOS

Open Woongsik opened this issue 3 years ago • 2 comments

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.

Woongsik avatar Nov 23 '22 14:11 Woongsik

Hello @Woongsik . Thanks for those details. I believe you apply your custom view the right way. We'll try to reproduce and fix it on iOS.

CatchABus avatar Nov 24 '22 18:11 CatchABus

Is there any news regarding this bug? I have similar approach using

<map:MapView row="0" col="0" width="100%" id="map" ready="{{onReady}}"

  markerInfoWindow="{{onMarkerInfoWindow}}"
  infoWindowTap="{{onInfoWindowTap}}"
  markerTap="{{onMarkerTap}}"
  infoWindowClose="{{ onInfoWindowClose}}">
</map:MapView>

Works well on android, ios don't.

luis-gmonkey avatar Mar 04 '24 17:03 luis-gmonkey