chore: bump Leaflet.Photon
Some checks are pending
Test & Docs / tests (postgresql, 3.10) (push) Waiting to run
Test & Docs / tests (postgresql, 3.12) (push) Waiting to run
Test & Docs / lint (push) Waiting to run

To display state in results, cf #419
This commit is contained in:
Yohan Boniface 2025-03-06 09:38:51 +01:00
parent b7cce7079d
commit 188a0d6e98
2 changed files with 4 additions and 1 deletions

View file

@ -59,7 +59,7 @@
"leaflet.locatecontrol": "0.81.1",
"leaflet.markercluster": "^1.5.3",
"leaflet.path.drag": "0.0.6",
"leaflet.photon": "0.9.1",
"leaflet.photon": "0.9.2",
"osmtogeojson": "^3.0.0-beta.5",
"simple-statistics": "7.8.5"
},

View file

@ -258,6 +258,9 @@ L.PhotonBaseSearch = L.PhotonBase.extend({
if (feature.properties.city && feature.properties.city !== feature.properties.name) {
details.push(feature.properties.city);
}
if (feature.properties.state && feature.properties.state !== feature.properties.name) {
details.push(feature.properties.state);
}
if (feature.properties.country) details.push(feature.properties.country);
detailsContainer.innerHTML = details.join(', ');
},