Use getProperties instead of undocumented var
This commit is contained in:
parent
2242863fdd
commit
d96415b1c5
2 changed files with 5 additions and 5 deletions
2
main.js
2
main.js
|
|
@ -141,7 +141,7 @@ map.on('click', function (evt) {
|
|||
}
|
||||
} else {
|
||||
// exclude geometry -- https://stackoverflow.com/a/208106
|
||||
const {geometry: _, ...featureData} = feature.values_;
|
||||
const {geometry: _, ...featureData} = feature.getProperties();
|
||||
|
||||
content.innerHTML = objectToTable(featureData);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue