Polyline click listener

Hi All,

Currently I’m using Cuba 6.8.7 platform, and also using google map addon

Everything work great for google map addon, until I realize there is no poly line click listener provided , so it can work like original polyline https://developers.google.com/maps/documentation/javascript/shapes#polylines

Is there a way to add click listener for polyline in google map addon in cuba platform ?



Unfortunately, we can’t add a click listener to the polyline now. I’ve created an issue in our github repository: cuba-platform/charts.
As a workaround, you can add MapClickListener and check clicked point with points in polylines list, but it is no good solution. Maybe, polygons can help you?

Hi @Pinyazhin, Yeah, cuba polygon can substitute polyline and clicklistener is worked