Skip to content

Commit

Permalink
Merge pull request #1961 from DemocracyClub/nicer-maps
Browse files Browse the repository at this point in the history
Improve map display
  • Loading branch information
symroe authored Jun 20, 2024
2 parents f8f4350 + 2b59813 commit 1a99e5e
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2 class="ds-h4">Your constituency has not changed</h2>
display: inline-block;
height: 1em;
width: 1em;
border: 1px solid black;
border: none;
margin: 0 0.1em 0 0.5em;
}

Expand All @@ -74,7 +74,7 @@ <h2 class="ds-h4">Your constituency has not changed</h2>
}

.key-pink::before {
background-color: rgba(230, 0, 124, 0.5);
border: 3px solid rgba(230, 0, 124, 1) !important;
}
</style>
<p class="map-key">Key:
Expand Down Expand Up @@ -120,17 +120,19 @@ <h2 class="ds-h4">Your constituency has not changed</h2>
var old_boundary = L.geoJSON(data[0], {
style: {
color: 'rgba(64, 63, 65, 0.5)',
stroke: false,
weight: 0,

fillOpacity: 1
},
onEachFeature: onEachFeature
});
allLayers.addLayer(old_boundary);
var new_boundary = L.geoJSON(data[1], {
style: {
color: 'rgba(230, 0, 124, 0.5)',
stroke: false,
fillOpacity: 1
color: 'rgba(230, 0, 124, 1)',
fill: false,
weight: 3,
fillOpacity: 0
},
onEachFeature: onEachFeature
});
Expand All @@ -139,7 +141,7 @@ <h2 class="ds-h4">Your constituency has not changed</h2>
map.fitBounds(allLayers.getBounds());
var postcodeLocation = {{postcode_location|safe}};
layer = L.geoJSON(postcodeLocation, {
style: {color: '#00B6FF'}
style: {color: 'rgba(230, 0, 124, 0.5)'}
});
map.addLayer(layer);
});
Expand Down

0 comments on commit 1a99e5e

Please sign in to comment.