So here are my polylines (already drawn, I'm using Polymer):
<leaflet-polyline no-clickable="{{function()}}"></leaflet-polyline>
When the function evaluates to true, I have an observer change the clickable property of each polyline with this function:
clickableChanged: function() {
if (this.feature) {
this.feature.setStyle({clickable:!this.noClickable});
};
}
The function works and it sets the property clickable to false for each polyline, but my mouse can still click on it. Not sure what's up with it.
Thanks!