diff --git a/examples/vector-tile-selection.js b/examples/vector-tile-selection.js index 22d5d52676..56c43da2db 100644 --- a/examples/vector-tile-selection.js +++ b/examples/vector-tile-selection.js @@ -53,6 +53,10 @@ map.on('click', function(event) { return; } const feature = features[0]; + if (!feature) { + return; + } + const fid = feature.get(idProp); if (selectElement.value === 'singleselect') {