Maybe a bug in stylefunction
toddwong opened this issue · 2 comments
toddwong commented
if (
(typeof sourceOrLayers == 'string' && layer.source == sourceOrLayers) ||
sourceOrLayers.indexOf(layerId) !== -1
)
If sourceOrLayers
is a string and layer.source != sourceOrLayers
, then the indexOf
function would be String.prototype.indexOf
instead of Array.prototype.indexOf
.