Skip to content

Commit d381c0f

Browse files
committed
Refactor map styling and layer properties for improved visual clarity
1 parent b899d55 commit d381c0f

File tree

1 file changed

+11
-5
lines changed
  • django_project/certification/templates/certifying_organisation/includes

1 file changed

+11
-5
lines changed

django_project/certification/templates/certifying_organisation/includes/world-map.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
'<a href="http://hot.openstreetmap.org/" target="_blank">'+
4040
'Humanitarian OpenStreetMap Team</a>',
4141
opacity: 0.75,
42+
className: 'basemap-tiles',
4243
}).addTo(map);
4344

4445
add_layers_to_map();
@@ -152,10 +153,10 @@
152153
function style(feature) {
153154
return {
154155
fillColor: get_color(feature.properties.organisation_count),
155-
weight: 1.5,
156-
opacity: 1,
157-
color: '#b3b3b3',
158-
fillOpacity: 0.9
156+
weight: 1,
157+
opacity: .5,
158+
color: '#002033',
159+
fillOpacity: 0.75
159160
};
160161
}
161162

@@ -172,7 +173,7 @@
172173
var feature = e.target;
173174

174175
feature.setStyle({
175-
weight: 2.5,
176+
weight: 3,
176177
color: '#ee7913',
177178
dashArray: '',
178179
fillOpacity: 0.9
@@ -208,4 +209,9 @@
208209
</div>
209210
</div>
210211
</div>
212+
<style>
213+
.basemap-tiles {
214+
filter: grayscale(100%) brightness(80%);
215+
}
216+
</style>
211217
{% endblock %}

0 commit comments

Comments
 (0)