Merge pull request #12375 from mike-000/patch-5

Fix Vector Tile Selection example on old browsers
This commit is contained in:
Tim Schaub
2021-06-03 06:22:56 -06:00
committed by GitHub

View File

@@ -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