Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Improved readability of scalebar and coordinates

Taylor Gunnoef80140db9f7b
diff --git a/.gitignore b/.gitignore
index 546ef3e3f..04ee454ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@
/.pydevproject
wv.tar
wv.tar
+.DS_Store
diff --git a/src/css/map.css b/src/css/map.css
index 6f5310e34..0e663105c 100644
--- a/src/css/map.css
+++ b/src/css/map.css
@@ -1,43 +1,57 @@
div.olControlMousePosition {
- position: absolute;
- right: 12px;
- bottom: 98px;
- z-index: 2000;
- padding: 1px 8px;
-
- display: block;
- font-size: xx-small;
- color: #EEEEEE;
- background-color:rgba(38,38,38,0.4);
+ position: absolute;
+ right: 12px;
+ bottom: 98px;
+ z-index: 2000;
+ padding: 1px 8px;
+ display: block;
+ font-size: 1.3em;
+ color: #EEEEEE;
+ background-color:rgba(38,38,38,0.4);
+ text-shadow:
+ -1px -1px 0 #000,
+ 1px -1px 0 #000,
+ -1px 1px 0 #000,
+ 1px 1px 0 #000;
}
div.olControlScaleLineCustom {
- position: absolute;
- right: 12px;
- bottom: 118px;
- z-index: 2000;
-
- display: block;
- font-size: xx-small;
- color: #EEEEEE;
+ position: absolute;
+ right: 12px;
+ bottom: 118px;
+ z-index: 2000;
+ display: block;
+ color: #EEEEEE;
+ text-shadow:
+ -1px -1px 0 #000,
+ 1px -1px 0 #000,
+ -1px 1px 0 #000,
+ 1px 1px 0 #000;
}
.olControlScaleLineCustomBottom {
border: solid 2px black;
border-bottom: none;
+ float:right;
+ clear:both;
+ box-sizing:border-box;
margin-top:-2px;
- text-align: center;
+ text-align: right;
+ padding:5px 10px;
background-color:rgba(38,38,38,0.4);
- font-size: 0.9em;
+ font-size: 1.3em;
}
.olControlScaleLineCustomTop {
border: solid 2px black;
border-top: none;
- text-align: center;
+ box-sizing:border-box;
+ float:right;
+ text-align: right;
background-color:rgba(38,38,38,0.4);
- font-size: 0.9em;
+ padding:5px 10px;
+ font-size: 1.3em;
}
@@ -71,14 +85,14 @@ div.olMap {
/* Zoom panel controls */
div.olControlZoomPanelCustom {
- top: 125px;
+ top: 125px;
left: 14px;
- height: 68px;
- width: 36px;
- position: relative !important;
- float:right;
- margin:0 20px 0 0;
- cursor: pointer;
+ height: 68px;
+ width: 36px;
+ position: relative !important;
+ float:right;
+ margin:0 20px 0 0;
+ cursor: pointer;
}
div.olControlZoomPanelCustom div {
@@ -93,14 +107,14 @@ div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive {
}
div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive {
background: rgba(45,50,55,0.5);
- top: 0;
+ top: 0;
background-position: 0 0;
border-radius: 5px 5px 0 0;
}
div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive {
background: rgba(45,50,55,0.5);
top: 72px;
- background-position: 0 -72px;
+ background-position: 0 -72px;
border-radius: 0 0 5px 5px ;
top: 35px;
}
diff --git a/src/js/Worldview/Map/MapSet.js b/src/js/Worldview/Map/MapSet.js
index abd13b250..73edec147 100644
--- a/src/js/Worldview/Map/MapSet.js
+++ b/src/js/Worldview/Map/MapSet.js
@@ -465,7 +465,8 @@ Worldview.Map.MapSet = function(containerId, mapConfig, component) {
// While these aren't controls, per se, they are extra decorations
controls.push(new OpenLayers.Control.Attribution());
controls.push(new OpenLayers.Control.ScaleLine({
- displayClass: mapClass + "olControlScaleLineCustom"
+ displayClass: mapClass + "olControlScaleLineCustom",
+ maxWidth: 200,
}));
var coordinateControl =
diff --git a/src/js/Worldview/Widget/Map.js b/src/js/Worldview/Widget/Map.js
index 7d9b20f8a..d780fae53 100644
--- a/src/js/Worldview/Widget/Map.js
+++ b/src/js/Worldview/Widget/Map.js
@@ -198,7 +198,7 @@ Worldview.Widget.Map = function(containerId, config) {
}
});
return config;
- }
+ };
init();
return self;
};