Google Maps Marker click event programmatically?


#1

Good morning,
I use Google Maps Native and I created a marker’s click event :

marker.on(GoogleMapsEvent.MARKER_CLICK).subscribe(() => { ... })

Is there any way to call click event programmatically? I want to call it when i enter a page.
Thank you…


#2
marker.trigger(GoogleMapsEvent.MARKER_CLICK, marker.getPosition());

#3

Thank you… I thought that if I trigger a click event the button for google maps directions (only on Android) will be displayed, but it is not! Propably it is displayed only if you click on a marker. Or it is another way to display it programmatically?


#4

There is no feature such like that.


#5

Ok thank you for your reply!!