Use getProperties instead of undocumented var

This commit is contained in:
Chandler Swift 2024-02-02 03:25:22 -06:00
parent 2242863fdd
commit d96415b1c5
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 5 additions and 5 deletions

View file

@ -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);
}