Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Removed openlayers.css

Mike McGannd1a807c71c36
diff --git a/src/css/map-ol2.css b/src/css/map-ol2.css
new file mode 100644
index 000000000..92bac4f37
--- /dev/null
+++ b/src/css/map-ol2.css
@@ -0,0 +1,212 @@
+.ui-body-c {
+ text-shadow:none;
+}
+div.olControlMousePosition, div.olControlScaleLineCustom {
+ position:absolute;
+ right:12px;
+ z-index:2000;
+ display:block;
+}
+div.olControlMousePosition, div.olControlScaleLineCustomBottom,div.olControlScaleLineCustomTop {
+ color: #EEEEEE;
+ text-shadow:
+ -1px -1px 0 #000,
+ 1px -1px 0 #000,
+ -1px 1px 0 #000,
+ 1px 1px 0 #000;
+ font-size: 0.9em;
+ font-weight:bold;
+}
+div.olControlScaleLineCustomBottom, div.olControlScaleLineCustomTop{
+ background-color:rgba(38,38,38,0.4);
+ float:right;
+ text-align:right;
+ padding:3px 10px 3px 0;
+ box-sizing:border-box;
+}
+div.olControlMousePosition {
+ bottom: 95px;
+ padding: 1px 8px;
+}
+div.olControlScaleLineCustom {
+ bottom: 118px;
+}
+.olControlScaleLineCustomBottom {
+ border: solid 2px black;
+ border-bottom: none;
+ clear:both;
+ margin-top:-2px;
+}
+.olControlScaleLineCustomTop {
+ border: solid 2px black;
+ border-top: none;
+}
+
+
+/* CSS for full-screen map div and mobile device support */
+@media only screen and (max-width: 600px) {
+ html, body {
+ height : 117%;
+ }
+}
+
+.olControlAttribution {
+ position : absolute;
+ font-size : 10px;
+ bottom : 0 !important;
+ right : 0 !important;
+ background : rgba(0,0,0,0.1);
+ font-family : Arial;
+ padding : 2px 4px;
+ border-radius : 5px 0 0 0;
+}
+
+div.olMap {
+ background-color: #000000;
+ /*position:absolute !important; left:0; top:0; width: 100%; height: 100%;*/
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+
+/* Zoom panel controls */
+div.olControlZoomPanelCustom {
+ top: 125px;
+ left: 14px;
+ height: 68px;
+ width: 36px;
+ position: relative !important;
+ float:right;
+ margin:0 20px 0 0;
+ cursor: pointer;
+}
+
+div.olControlZoomPanelCustom div {
+ width: 32px;
+ height: 32px;
+ left: 0;
+}
+
+div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive,
+div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive {
+ position: absolute;
+}
+div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive {
+ background: rgba(45,50,55,0.5);
+ 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;
+ border-radius: 0 0 5px 5px ;
+ top: 35px;
+}
+div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive:after ,
+div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive:after{
+ font-weight: bold;
+ content : '+';
+ font-size : 20px;
+ padding: 11px;
+ z-index: 2000;
+ color : #FFFFFF;
+ line-height: 1.6em;
+}
+div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive:after{
+ content: '–';
+ line-height: 1.6em;
+ padding: 0 11px;
+}
+
+div.olControlZoomPanelCustom .olControlZoomToMaxExtentItemInactive {
+ top: 36px;
+ background-position: 0 -36px;
+ display: none;
+}
+
+/* End Zoom Panel */
+
+
+
+.olControlLayerSwitcher {
+ position: absolute;
+ top: 180px;
+ right: 0px;
+ width: 35em;
+ font-family: sans-serif;
+ font-weight: bold;
+ margin-top: 3px;
+ margin-left: 3px;
+ margin-bottom: 3px;
+ font-size: smaller;
+ color: white;
+ background-color: transparent;
+}
+
+.olControlLayerSwitcher .layersDiv {
+ padding-top: 5px;
+ padding-left: 1px;
+ padding-bottom: 5px;
+ padding-right: 3px;
+ background-color: darkblue;
+ width: 100%;
+
+}
+
+
+.olControlLayerSwitcher .layersDiv .baseLbl,
+.olControlLayerSwitcher .layersDiv .dataLbl {
+ margin-top: 3px;
+ margin-left: 3px;
+ margin-bottom: 3px;
+
+}
+
+.olControlLayerSwitcher .layersDiv .baseLayersDiv{
+ padding-left: 10px;
+ overflow: auto;
+ height: 80px;
+ opacity: 1 !important;
+}
+
+.olControlLayerSwitcher .layersDiv .dataLayersDiv {
+ padding-left: 10px;
+ overflow: auto;
+ height: 250px;
+ opacity: 1 !important;
+}
+
+.olControlLayerSwitcher .maximizeDiv,
+.olControlLayerSwitcher .minimizeDiv {
+ top: 5px;
+ right: 0px;
+}
+
+.olLayerGrid .olTileImage {
+ -webkit-transition: none;
+ -moz-transition: none;
+ -o-transition: all 0 none;
+ transition: none;
+}
+
+.olImageLoadError {
+ background-color: transparent !important;
+}
+
+
+#title, #tags, #shortdesc {
+ display: none;
+}
+
+.olButton {
+ -webkit-user-select: none; /* Chrome/Safari */
+ -moz-user-select: none; /* Firefox */
+ -ms-user-select: none; /* IE10+ */
+ user-select: none;
+}
+
+
diff --git a/src/css/map.css b/src/css/map.css
index 92bac4f37..2c0b50393 100644
--- a/src/css/map.css
+++ b/src/css/map.css
@@ -1,212 +1,13 @@
-.ui-body-c {
- text-shadow:none;
-}
-div.olControlMousePosition, div.olControlScaleLineCustom {
- position:absolute;
- right:12px;
- z-index:2000;
- display:block;
-}
-div.olControlMousePosition, div.olControlScaleLineCustomBottom,div.olControlScaleLineCustomTop {
- color: #EEEEEE;
- text-shadow:
- -1px -1px 0 #000,
- 1px -1px 0 #000,
- -1px 1px 0 #000,
- 1px 1px 0 #000;
- font-size: 0.9em;
- font-weight:bold;
-}
-div.olControlScaleLineCustomBottom, div.olControlScaleLineCustomTop{
- background-color:rgba(38,38,38,0.4);
- float:right;
- text-align:right;
- padding:3px 10px 3px 0;
- box-sizing:border-box;
-}
-div.olControlMousePosition {
- bottom: 95px;
- padding: 1px 8px;
-}
-div.olControlScaleLineCustom {
- bottom: 118px;
-}
-.olControlScaleLineCustomBottom {
- border: solid 2px black;
- border-bottom: none;
- clear:both;
- margin-top:-2px;
-}
-.olControlScaleLineCustomTop {
- border: solid 2px black;
- border-top: none;
-}
+/*
+ * NASA Worldview
+ *
+ * This code was originally developed at NASA/Goddard Space Flight Center for
+ * the Earth Science Data and Information System (ESDIS) project.
+ *
+ * Copyright (C) 2013 United States Government as represented by the
+ * Administrator of the National Aeronautics and Space Administration.
+ * All Rights Reserved.
+ */
-/* CSS for full-screen map div and mobile device support */
-@media only screen and (max-width: 600px) {
- html, body {
- height : 117%;
- }
-}
-
-.olControlAttribution {
- position : absolute;
- font-size : 10px;
- bottom : 0 !important;
- right : 0 !important;
- background : rgba(0,0,0,0.1);
- font-family : Arial;
- padding : 2px 4px;
- border-radius : 5px 0 0 0;
-}
-
-div.olMap {
- background-color: #000000;
- /*position:absolute !important; left:0; top:0; width: 100%; height: 100%;*/
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
-}
-
-/* Zoom panel controls */
-div.olControlZoomPanelCustom {
- top: 125px;
- left: 14px;
- height: 68px;
- width: 36px;
- position: relative !important;
- float:right;
- margin:0 20px 0 0;
- cursor: pointer;
-}
-
-div.olControlZoomPanelCustom div {
- width: 32px;
- height: 32px;
- left: 0;
-}
-
-div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive,
-div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive {
- position: absolute;
-}
-div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive {
- background: rgba(45,50,55,0.5);
- 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;
- border-radius: 0 0 5px 5px ;
- top: 35px;
-}
-div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive:after ,
-div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive:after{
- font-weight: bold;
- content : '+';
- font-size : 20px;
- padding: 11px;
- z-index: 2000;
- color : #FFFFFF;
- line-height: 1.6em;
-}
-div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive:after{
- content: '–';
- line-height: 1.6em;
- padding: 0 11px;
-}
-
-div.olControlZoomPanelCustom .olControlZoomToMaxExtentItemInactive {
- top: 36px;
- background-position: 0 -36px;
- display: none;
-}
-
-/* End Zoom Panel */
-
-
-
-.olControlLayerSwitcher {
- position: absolute;
- top: 180px;
- right: 0px;
- width: 35em;
- font-family: sans-serif;
- font-weight: bold;
- margin-top: 3px;
- margin-left: 3px;
- margin-bottom: 3px;
- font-size: smaller;
- color: white;
- background-color: transparent;
-}
-
-.olControlLayerSwitcher .layersDiv {
- padding-top: 5px;
- padding-left: 1px;
- padding-bottom: 5px;
- padding-right: 3px;
- background-color: darkblue;
- width: 100%;
-
-}
-
-
-.olControlLayerSwitcher .layersDiv .baseLbl,
-.olControlLayerSwitcher .layersDiv .dataLbl {
- margin-top: 3px;
- margin-left: 3px;
- margin-bottom: 3px;
-
-}
-
-.olControlLayerSwitcher .layersDiv .baseLayersDiv{
- padding-left: 10px;
- overflow: auto;
- height: 80px;
- opacity: 1 !important;
-}
-
-.olControlLayerSwitcher .layersDiv .dataLayersDiv {
- padding-left: 10px;
- overflow: auto;
- height: 250px;
- opacity: 1 !important;
-}
-
-.olControlLayerSwitcher .maximizeDiv,
-.olControlLayerSwitcher .minimizeDiv {
- top: 5px;
- right: 0px;
-}
-
-.olLayerGrid .olTileImage {
- -webkit-transition: none;
- -moz-transition: none;
- -o-transition: all 0 none;
- transition: none;
-}
-
-.olImageLoadError {
- background-color: transparent !important;
-}
-
-
-#title, #tags, #shortdesc {
- display: none;
-}
-
-.olButton {
- -webkit-user-select: none; /* Chrome/Safari */
- -moz-user-select: none; /* Firefox */
- -ms-user-select: none; /* IE10+ */
- user-select: none;
-}
-
diff --git a/src/css/wv.css b/src/css/wv.css
new file mode 100644
index 000000000..babc52e5d
--- /dev/null
+++ b/src/css/wv.css
@@ -0,0 +1,26 @@
+/*
+ * NASA Worldview
+ *
+ * This code was originally developed at NASA/Goddard Space Flight Center for
+ * the Earth Science Data and Information System (ESDIS) project.
+ *
+ * Copyright (C) 2013 United States Government as represented by the
+ * Administrator of the National Aeronautics and Space Administration.
+ * All Rights Reserved.
+ */
+
+body {
+ margin: 0;
+ padding: 0;
+}
+
+#app {
+ width: 100%;
+ height: 100%;
+}
+
+#app [data-role='content'] {
+ padding: 0;
+ width: 100%;
+ height: 100%;
+}
diff --git a/src/index.html b/src/index.html
index 1ea358340..89c8f872d 100644
--- a/src/index.html
+++ b/src/index.html
@@ -30,8 +30,6 @@
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="ext/yui/combo-container-min.css" />
<!-- link.dev --> <link type="text/css" rel="StyleSheet" href="ext/openlayers/theme/default/style.css" />
- <!-- link.dev --> <link type="text/css" rel="StyleSheet" href="ext/openlayers/openlayers.example.style.css" />
- <!-- link.dev --> <link type="text/css" rel="StyleSheet" href="ext/openlayers/openlayers.style.mobile-jq.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="ext/jquery.dd/dd.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="ext/jquery.dd/skin2.css" />
@@ -53,6 +51,7 @@
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/projection.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/pages.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/map.css" />
+ <!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/map-ol2.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/dateSpan.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/menuPicker.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/accordionPicker.css" />
@@ -65,6 +64,7 @@
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/indicator.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/events.css" />
<!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/dataDownload.css" />
+ <!-- link.dev --> <link type="text/css" rel="Stylesheet" href="css/wv.css"/>
<!-- JavaScript resources ============================================= -->
<!-- link.prod --> <!-- <script type="text/javascript" src="js/worldview-min.js?v=@BUILD_NONCE@&mobile"></script> -->
@@ -236,7 +236,7 @@
</head>
<body class="yui-skin-sam">
- <div data-role="page" id="mappage">
+ <div data-role="page" id="app">
<div data-role="content">
<div id="banner"><div id='wvlogo'></div>
<ul id="toolbarlist">