NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
190 stars 107 forks source link

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

Open Woongsik opened 1 year ago

Woongsik commented 1 year ago

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.

CatchABus commented 1 year ago

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.

luis-gmonkey commented 6 months ago

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.