Skip to content

Commit

Permalink
Append current state to the name/address in the popup
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-anz committed May 27, 2024
1 parent 1c1a2c9 commit 8cdbfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function loadSuburb(state_file, commit, first_load=false) {
},
onEachFeature: function (feature, layer) {
// popup with place name and upgrade type
var s = "<b>" + feature.properties.name + "</b><br>Location: " + feature.properties.locID + "<br>Current tech: " + feature.properties.tech
var s = "<b>" + feature.properties.name + " (" + default_state + ")</b><br>Location: " + feature.properties.locID + "<br>Current tech: " + feature.properties.tech
// legacy FTTP upgrade pre November 2023
if (!("target_eligibility_quarter" in feature.properties) && feature.properties.tech != "FTTP" && (feature.properties.tech == "FTTN" || feature.properties.tech == "FTTC")) {
s += "<br>Upgrade available: " + (feature.properties.upgrade == "FTTP_SA" ? "Yes" : (feature.properties.upgrade == "FTTP_NA" ? "Soon" : "No"))
Expand Down

0 comments on commit 8cdbfe0

Please sign in to comment.