From 188a0d6e98f9ae64a2dd729d20ff2fb9942251da Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 6 Mar 2025 09:38:51 +0100 Subject: [PATCH] chore: bump Leaflet.Photon To display state in results, cf #419 --- package.json | 2 +- umap/static/umap/vendors/photon/leaflet.photon.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6da5793b..16d9b54f 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/umap/static/umap/vendors/photon/leaflet.photon.js b/umap/static/umap/vendors/photon/leaflet.photon.js index eaf364fb..8fbb6538 100644 --- a/umap/static/umap/vendors/photon/leaflet.photon.js +++ b/umap/static/umap/vendors/photon/leaflet.photon.js @@ -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(', '); },