Skip to content

Commit

Permalink
maps: Reformat popups
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Parnell committed Oct 28, 2022
1 parent 632aadc commit 622bb1b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cove_ofds/templates/cove_ofds/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,9 @@ <h4 class="panel-title">
};

var generatePopup = function (layer) {
console.log(layer.feature)
return `<b>Name: ${layer.feature.properties.name}</b>
<p>Network: ${layer.feature.properties.network.name}</p>
<p>Phase: ${layer.feature.properties.phase.name}</p>`;
return `<p><strong>Name:</strong> ${layer.feature.properties.name || 'Unknown'}</p>
<p><strong>Network:</strong> ${layer.feature.properties.network.name || 'Unknown'}</p>
<p><strong>Phase:</strong> ${layer.feature.properties.phase.name || 'Unknown'}</p>`;
}

var customOptions = {
Expand Down

0 comments on commit 622bb1b

Please sign in to comment.