diff --git a/examples/vector-tile-selection.js b/examples/vector-tile-selection.js index 57325b7e4d..5dd228dcae 100644 --- a/examples/vector-tile-selection.js +++ b/examples/vector-tile-selection.js @@ -86,7 +86,7 @@ map.on(['click', 'pointermove'], function (event) { } const fid = feature.getId(); - if (selectElement.value.startsWith('singleselect')) { + if (selectElement.value.indexOf('singleselect') === 0) { selection = {}; } // add selected feature to lookup