Skip to content

Commit

Permalink
Better county text
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Feb 2, 2024
1 parent 5cbdeda commit 392512e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ function getProperties(e) {
'type': 'LEA',
'county': `${e.features[0]['properties']['COUNTY']}`,
'title': `Name: ${e.features[0]['properties']['CSO_LEA']}`,
'id': `LEA ID: ${e.features[0]['properties']['LEA_ID']}`
'id': `ID: ${e.features[0]['properties']['LEA_ID']}`
}:
{
'type': 'Electoral Division',
'county': `${e.features[0]['properties']['COUNTY_ENGLISH']}`,
'title': `Name: ${e.features[0]['properties']['ED_ENGLISH']}`,
'id': `ED ID: ${e.features[0]['properties']['ED_ID_STR']}`
'id': `ID: ${e.features[0]['properties']['ED_ID_STR']}`
};
let coordinates = e.lngLat;
// // Ensure that if the map is zoomed out such that multiple
Expand All @@ -40,7 +40,7 @@ function getProperties(e) {
<div class="card-header">${description.type}</div>
<div class="card-body">
<h5 class="card-title">${description.id}</h5>
<h6 class="card-subtitle mb-2 text-muted">${description.county}</h6>
<h6 class="card-subtitle mb-2 text-opacity-50">${description.county}</h6>
<p class="card-text">${description.title}</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion static/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/meta.json

Large diffs are not rendered by default.

0 comments on commit 392512e

Please sign in to comment.