Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Update CloudSat_Asc styles, add orbit controls, update modal style

ZachTRice9ca94d4f964f
diff --git a/config/default/common/vectorstyles/OrbitTracks_CloudSat_Ascending.json b/config/default/common/vectorstyles/OrbitTracks_CloudSat_Ascending.json
index 15cc1ff2b..3c4136e77 100644
--- a/config/default/common/vectorstyles/OrbitTracks_CloudSat_Ascending.json
+++ b/config/default/common/vectorstyles/OrbitTracks_CloudSat_Ascending.json
@@ -14,10 +14,560 @@
"id": "default_style",
"source": "OrbitTracks_CloudSat_Ascending",
"source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "#ff0000",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "default_style",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "#ff0000"
+ }
+ },
+ {
+ "id": "yellow1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(204, 255, 51)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "yellow1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(204, 255, 51)"
+ }
+ },
+ {
+ "id": "yellow2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(248, 232, 35)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "yellow2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(248, 232, 35)"
+ }
+ },
+ {
+ "id": "orange1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(242, 135, 34)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "orange1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(242, 135, 34)"
+ }
+ },
+ {
+ "id": "orange2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(237, 209, 130)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "orange2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(237, 209, 130)"
+ }
+ },
+ {
+ "id": "orange3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(216, 186, 25)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "orange3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(216, 186, 25)"
+ }
+ },
+ {
+ "id": "red1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(177, 89, 40)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "red1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(177, 89, 40)"
+ }
+ },
+ {
+ "id": "red2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(196, 6, 41)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "red2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(196, 6, 41)"
+ }
+ },
+ {
+ "id": "red3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(255, 69, 0)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "red3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(255, 69, 0)"
+ }
+ },
+ {
+ "id": "pink1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(255, 51, 204)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "pink1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(255, 51, 204)"
+ }
+ },
+ {
+ "id": "pink2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(255, 204, 255)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "pink2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(255, 204, 255)"
+ }
+ },
+ {
+ "id": "pink3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(255, 196, 198)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "pink3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(255, 196, 198)"
+ }
+ },
+ {
+ "id": "pink4",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(219, 112, 147)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "pink4",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(219, 112, 147)"
+ }
+ },
+ {
+ "id": "pink5",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(255, 160, 122)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "pink5",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(255, 160, 122)"
+ }
+ },
+ {
+ "id": "purple1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(178, 144, 193)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "purple1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(178, 144, 193)"
+ }
+ },
+ {
+ "id": "purple2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(106, 61, 154)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "purple2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(106, 61, 154)"
+ }
+ },
+ {
+ "id": "purple3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(192, 88, 240)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "purple3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(192, 88, 240)"
+ }
+ },
+ {
+ "id": "blue1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(136, 177, 191)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "blue1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(136, 177, 191)"
+ }
+ },
+ {
+ "id": "blue2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(64, 244, 208)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "blue2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(64, 244, 208)"
+ }
+ },
+ {
+ "id": "blue3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(126, 151, 189)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "blue3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(126, 151, 189)"
+ }
+ },
+ {
+ "id": "blue4",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(102, 204, 204)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "blue4",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(102, 204, 204)"
+ }
+ },
+ {
+ "id": "blue5",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(25, 114, 243)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "blue5",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(25, 114, 243)"
+ }
+ },
+ {
+ "id": "blue6",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(21, 192, 230)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "blue6",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(21, 192, 230)"
+ }
+ },
+ {
+ "id": "brown1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(153, 153, 0)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "brown1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(153, 153, 0)"
+ }
+ },
+ {
+ "id": "brown2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(210, 136, 127)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "brown2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(210, 136, 127)"
+ }
+ },
+ {
+ "id": "green1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(22, 160, 133)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "green1",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(22, 160, 133)"
+ }
+ },
+ {
+ "id": "green2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(55, 242, 34)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "green2",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(55, 242, 34)"
+ }
+ },
+ {
+ "id": "green3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(127, 196, 6)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "green3",
+ "source": "OrbitTracks_CloudSat_Ascending",
+ "source-layer": "OrbitTracks_CloudSat_Ascending",
"type": "circle",
"paint": {
- "circle-radius": "7.5",
- "circle-color": ["rgba(178,223,138,1)"]
+ "circle-radius": "5",
+ "circle-color": "rgb(127, 196, 6)"
}
}
]
diff --git a/web/css/vectorMeta.css b/web/css/vectorMeta.css
index d53697a73..d9de9d493 100644
--- a/web/css/vectorMeta.css
+++ b/web/css/vectorMeta.css
@@ -1,3 +1,17 @@
+.vector-modal .close {
+ opacity: 1;
+}
+
+.vector-modal .modal-title {
+ color: #fff;
+ font-weight: 800;
+}
+
.vector-modal .modal-body {
overflow-x: scroll;
}
+
+.vector-modal .modal-body table th,
+.vector-modal .modal-body table td {
+ text-transform: capitalize;
+}
diff --git a/web/index.html b/web/index.html
index d1d7eb675..0aced5254 100644
--- a/web/index.html
+++ b/web/index.html
@@ -104,11 +104,12 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs
<div id="wv-alerts" class="wv-alerts"></div>
<div id="wv-vector-metadata" class="wv-vector-metadata"></div>
<div class="backdrop"></div>
- <div style="position:absolute;display:block;bottom:250px;right:0;width:200px;height:158px;background-color:#fff;">
- <input id="confidenceCheckbox"type="checkbox" name="confidenceColors" value="confidence"> Use Confidence Styles?<br>
- <input id="frpCheckbox"type="checkbox" name="frpColors" value="frp"> Use FRP Styles?<br>
- Filter by Confidence
+ <div style="position:absolute;display:block;bottom:250px;right:0;width:200px;height:358px;background-color:#fff;">
+ <strong><center>FIRMS Controls</center></strong><br>
+ <input id="confidenceCheckbox" type="checkbox" name="confidenceColors" value="confidence"> Use Confidence Styles?<br>
+ <input id="frpCheckbox" type="checkbox" name="frpColors" value="frp"> Use FRP Styles?<br><br>
<section class="range-slider">
+ <center>Filter by Confidence</center>
<span class="rangeValues"></span>
<input id="confidenceMinFilter" value="0" min="0" max="100" step="1" type="range">
<input id="confidenceMaxFilter" value="100" min="0" max="100" step="1" type="range">
@@ -117,6 +118,38 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs
<label style="width:50%;float:left;display:inline-block;">min: <span id="confidenceMinFilterLabel">0</span></label>
<label style="width:50%;float:left;display:inline-block;">max: <span id="confidenceMaxFilterLabel">100</span></label>
</div>
+ <hr>
+ <div class="orbit-track-controls" style="height:218px;overflow-y:scroll">
+ <strong><center>Orbit Track Controls</center></strong><br>
+ <input name="orbit-track-control" id="orbit-track-controls_default_style" type="checkbox" value="default_style">Default (Red)</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_yellow1" type="checkbox" value="yellow1">Yellow 1</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_yellow2" type="checkbox" value="yellow2">Yellow 2</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_orange1" type="checkbox" value="orange1">Orange 1</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_orange2" type="checkbox" value="orange2">Orange 2</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_orange3" type="checkbox" value="orange3">Orange 3</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_red1" type="checkbox" value="red1">Red 1</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_red2" type="checkbox" value="red2">Red 2</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_red3" type="checkbox" value="red3">Red 3</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_pink1" type="checkbox" value="pink1">Pink 1</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_pink2" type="checkbox" value="pink2">Pink 2</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_pink3" type="checkbox" value="pink3">Pink 3</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_pink4" type="checkbox" value="pink4">Pink 4</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_pink5" type="checkbox" value="pink5">Pink 5</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_purple1" type="checkbox" value="purple1">Purple 1</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_purple2" type="checkbox" value="purple2">Purple 2</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_purple3" type="checkbox" value="purple3">Purple 3</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_blue1" type="checkbox" value="blue1">Blue 1</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_blue2" type="checkbox" value="blue2">Blue 2</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_blue3" type="checkbox" value="blue3">Blue 3</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_blue4" type="checkbox" value="blue4">Blue 4</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_blue5" type="checkbox" value="blue5">Blue 5</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_blue6" type="checkbox" value="blue6">Blue 6</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_brown1" type="checkbox" value="brown1">Brown 1</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_brown2" type="checkbox" value="brown2">Brown 2</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_green1" type="checkbox" value="green1">Green 1</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_green2" type="checkbox" value="green2">Green 2</input><br>
+ <input name="orbit-track-control" id="orbit-track-controls_green3" type="checkbox" value="green3">Green 3</input><br>
+ </div>
</div>
</body>
diff --git a/web/js/components/vector-metadata/vector-metadata-modal.js b/web/js/components/vector-metadata/vector-metadata-modal.js
index c1193bd67..0a03ca53e 100644
--- a/web/js/components/vector-metadata/vector-metadata-modal.js
+++ b/web/js/components/vector-metadata/vector-metadata-modal.js
@@ -7,7 +7,7 @@ export default class VectorMetaModal extends React.Component {
render() {
return (
<Modal isOpen={this.props.metaModal} toggle={this.props.toggleMetaModal} className={'vector-modal'} backdrop={false} fade={false} keyboard={true}>
- <ModalHeader toggle={this.props.toggleMetaModal} charCode="">{this.props.metaTitle}</ModalHeader>
+ <ModalHeader toggle={this.props.toggleMetaModal}>{this.props.metaTitle}</ModalHeader>
<ModalBody>
<VectorMetaTable metaFeatures={this.props.metaFeatures} metaLegend={this.props.metaLegend} />
</ModalBody>
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.js
index 39d2b0ac7..1c9e2f460 100644
--- a/web/js/map/layerbuilder.js
+++ b/web/js/map/layerbuilder.js
@@ -422,16 +422,17 @@ export function mapLayerBuilder(models, config, cache, mapUi, store) {
$(document).on('change', function(e) {
glStyle = vectorStyles[vectorStyle];
- // Set default styles
-
+ styleFunction = stylefunction(layer, glStyle, 'default_style');
+ // FIRMS Style based on Confidence / FRP
if (document.getElementById('frpCheckbox').checked === true) {
styleFunction = stylefunction(layer, glStyle, 'MODIS_Fire_Points_FRP');
} else if (document.getElementById('confidenceCheckbox').checked === true) {
styleFunction = stylefunction(layer, glStyle, 'MODIS_Fire_Points_Confidence');
} else {
styleFunction = stylefunction(layer, glStyle, 'default_style');
- return styleFunction;
}
+
+ // FIRMS Filters
let confidenceMinFilter = document.getElementById('confidenceMinFilter');
let confidenceMaxFilter = document.getElementById('confidenceMaxFilter');
@@ -444,6 +445,93 @@ export function mapLayerBuilder(models, config, cache, mapUi, store) {
return styleFunction(feature, resolution);
}
});
+
+ if (document.getElementById('orbit-track-controls_yellow1').checked === true) {
+ console.log('checked')
+ styleFunction = stylefunction(layer, glStyle, 'yellow1');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_yellow2').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'yellow2');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_orange1').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'orange1');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_orange2').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'orange2');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_orange3').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'orange3');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_red1').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'red1');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_red2').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'red2');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_red3').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'red3');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_pink1').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'pink1');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_pink2').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'pink2');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_pink3').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'pink3');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_pink4').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'pink4');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_pink5').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'pink5');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_purple1').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'purple1');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_purple2').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'purple2');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_purple3').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'purple3');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_blue1').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'blue1');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_blue2').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'blue2');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_blue3').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'blue3');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_blue4').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'blue4');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_blue5').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'blue5');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_blue6').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'blue6');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_brown1').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'brown1');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_brown2').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'brown2');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_green1').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'green1');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_green2').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'green2');
+ return styleFunction;
+ } else if (document.getElementById('orbit-track-controls_green3').checked === true) {
+ styleFunction = stylefunction(layer, glStyle, 'green3');
+ return styleFunction;
+ } else {
+ styleFunction = stylefunction(layer, glStyle, 'default_style');
+ return styleFunction;
+ }
});
});
}