aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-31 18:51:46 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-31 18:51:51 +0000
commit46d078d170adba70ff256af66256ee01a3d31125 (patch)
tree0b3f396af30714a676d0f8078d3b586e337c8a69 /web/js/map-OpenLayers.js
parente21a75ae9a64a3a05fabff90f5543ad669d15778 (diff)
Zurich area unfilled with thick black outline (fixes a25).
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 3e4a4d703..e9e51113c 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -82,6 +82,9 @@ function fixmystreet_onload() {
fixmystreet.map.addLayer(area);
if ( fixmystreet.area.length == 1 ) {
area.events.register('loadend', null, function(a,b,c) {
+ if ( fixmystreet.area_format ) {
+ area.styleMap.styles.default.defaultStyle = fixmystreet.area_format;
+ }
var bounds = area.getDataExtent();
if (bounds) {
var center = bounds.getCenterLonLat();