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(', '); },