Bugfix for vector-tile-selection example
Checks if a feature exists before accessing his idProp.
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user