Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Commit 4eea576

Browse files
committed
fix: map background colour
Background for the map now changed with the map instead of staying the same colour.
1 parent 4e59a15 commit 4eea576

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

js/src/map.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function mapInit(elementID) {
151151
_MAP_UVInvMap ? mapID.push("UV Invert") : null;
152152
_MAP_PostcodeMap ? mapID.push("Postcode") : null;
153153
var mapOptions = {
154-
backgroundColor: "#0fa8d2",
154+
backgroundColor: "inherit",
155155
minZoom: 3,
156156
maxZoom: 7,
157157
isPng: true,
@@ -174,6 +174,7 @@ function mapInit(elementID) {
174174
var type = map.getMapTypeId();
175175
switch (type) {
176176
case "Atlas":
177+
case "Postcode":
177178
$("#" + elementID).css({
178179
"background-color": "#0fa8d2"
179180
});
@@ -192,11 +193,6 @@ function mapInit(elementID) {
192193
$("#" + elementID).css({
193194
"background-color": "#f2f0b6"
194195
});
195-
break
196-
default:
197-
$("#" + elementID).css({
198-
"background-color": "#0fa8d2"
199-
});
200196
break;
201197
}
202198
});

0 commit comments

Comments
 (0)