Commit bf9bd135 authored by irving's avatar irving

Quita las capas SCL al cambiar a modo de comparación

parent 8b519cae
......@@ -172,6 +172,24 @@ function compare(labels) {
//desactiva el botón de mostrar la gráfica
$('#showGraph').attr('disabled',true);
//quita todas las capas SCL y deja sólo TCI
removeLayer();
changeLayers('TCI');
$("#tcicheck").prop("checked", true);
$("#check-no-data").prop("checked", false);
$("#check-saturated").prop("checked", false);
$("#check-shadows").prop("checked", false);
$("#check-cloud-shadows").prop("checked", false);
$("#check-vegetation").prop("checked", false);
$("#check-not-vegetated").prop("checked", false);
$("#check-water").prop("checked", false);
$("#check-unclassified").prop("checked", false);
$("#check-clouds").prop("checked", false);
$("#check-snow").prop("checked", false);
map.getControls().forEach(function (control) { //checa si ya se añadio el control de comparacion (swipe), si no lo tiene, lo agrega
if (control instanceof ol.control.Swipe) { //si ya tiene el control agregado
swipeControl = true;
......
......@@ -219,70 +219,70 @@
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-no-data">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_0">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_0" id="check-no-data">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #383838"></i>
&nbspSCL No Data
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-saturated">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_1">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_1" id="check-saturated">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #de3d3d"></i>
&nbspSCL Saturated
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-shadows">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_2">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_2" id="check-shadows">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #696767"></i>
&nbspSCL Shadows
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-cloud-shadows">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_3">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_3" id="check-cloud-shadows">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #98775b"></i>
&nbspSCL Cloud Shadows
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-vegetation">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_4">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_4" id="check-vegetation">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #44ba5d"></i>
&nbspSCL Vegetation
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-not-vegetated">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_5">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_5" id="check-not-vegetated">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #fff98b"></i>
&nbspSCL Not-Vegetated
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-water">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_6">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_6" id="check-water">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #659acc"></i>
&nbspSCL Water
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-unclassified">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_7">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_7" id="check-unclassified">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #ababab"></i>
&nbspSCL Unclassified
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-clouds">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_8">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_8" id="check-clouds">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #dddddd"></i>
&nbspSCL Clouds
</label>
</div>
<div class="form-check submenu" style="display:none" id="sclcheck-snow">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_9">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL_9" id="check-snow">
<label class="form-check-label">
<i class="fa fa-circle" aria-hidden="true" style="color: #ff8afa"></i>
&nbspSCL Snow
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment