Closed MichaelSolati closed 7 years ago
@MichaelSolati well .. this one wont be simple to handle. the android google sdk recreates the markers dynamically thus the reference link in JS becomes obsolete. will see...
I think i got the same issue, I'm using Angular too and a marker added with mapView.addMarker(marker);
the funcion: (markerSelect)="onMarkerSelect($event)"
works fine. but when you click on a marker added by setupMarkerCluster()
the function "onMarkerSelect" is triggered but the value of "marker" is undefined.
yes, I've attempted to reimplement the marker click listener but that didn't work .. will see
I am experiencing the same thing with the demo folder in the repo. I can click on the Tunis marker with no problem but when I click the other ones that are created I receive an error.
@MichaelSolati @xyz765 @randy-johnson check latest version, should be fixed
You're the real MVP @naderio !!!! I'll have to update my projects over the weekend.
So before I implemented clusters I had my Markers open infowindows and on marker click triggered events with the
markerSelect
andmarkerInfoWindowTapped
directives of the MapView. (I'm using NativeScript with Angular 2.x)Anyway, after clustering, neither the info windows nor the MapView directives work/trigger when I click on a marker. For "shits & giggles" I modified the
index.android.td
adding the following linemapView.notifyMarkerEvent("markerSelect", clusterManager);
in thefunction setupMarkerCluster()
.With that the
markerSelect
directive will trigger, but with no marker to be found... 😩Any thoughts or insight would be helpful here, thank you!