Commit 28075124 authored by Ulises Morales Ramírez's avatar Ulises Morales Ramírez
parents 00941df5 d769ba13
...@@ -75,7 +75,7 @@ body ...@@ -75,7 +75,7 @@ body
border-radius: 50%; border-radius: 50%;
} }
#draggable { .draggable {
padding: 0px; padding: 0px;
position: absolute; position: absolute;
z-index: -1; z-index: -1;
...@@ -84,6 +84,33 @@ body ...@@ -84,6 +84,33 @@ body
opacity: .5; opacity: .5;
} }
#draggable:hover { .draggable:hover {
opacity: 1; opacity: 1;
} }
.title{
position: absolute;
top: 2%;
left: 6%;
width:100%;
height: 100%;
}
.title .info {
opacity: 0.5;
}
.title .info:hover{
opacity: 1;
}
#minimap{
width:100%;
height:100%;
margin:0;
padding:0;
position:fixed;
}
#reportPage{
height: 940px !important;
}
\ No newline at end of file
...@@ -41,14 +41,27 @@ function dragElement(elmnt) { ...@@ -41,14 +41,27 @@ function dragElement(elmnt) {
function showGraph(){ function showGraph(){
if ($('.showChart').is(':visible')){ if ($('.showChart').is(':visible')){
$("#draggable").css('z-index', 10); $("#draggableChart").css('z-index', 10);
$(".showChart").hide(); $(".showChart").hide();
$(".hideChart").show(); $(".hideChart").show();
}else{ }else{
$("#draggable").css('z-index', -1); $("#draggableChart").css('z-index', -1);
$(".showChart").show(); $(".showChart").show();
$(".hideChart").hide(); $(".hideChart").hide();
} }
} }
dragElement(document.getElementById("draggable")); function showComparisons() {
\ No newline at end of file if ($('.showImage').is(':visible')) {
$("#draggableImage").css('z-index', 10);
$(".showImage").hide();
$(".hideImage").show();
} else {
$("#draggableImage").css('z-index', -1);
$(".showImage").show();
$(".hideImage").hide();
}
}
dragElement(document.getElementById("draggableChart"));
dragElement(document.getElementById("draggableImage"));
\ No newline at end of file
...@@ -16,8 +16,7 @@ var map = new ol.Map({ ...@@ -16,8 +16,7 @@ var map = new ol.Map({
view: new ol.View({ view: new ol.View({
center: ol.proj.fromLonLat([-99.19, 19.61]), center: ol.proj.fromLonLat([-99.19, 19.61]),
zoom: 4, zoom: 4,
minZoom:4, minZoom:4
maxZoom: 14
}) })
}); });
...@@ -37,8 +36,8 @@ function addImageLayer(labelDate) { ...@@ -37,8 +36,8 @@ function addImageLayer(labelDate) {
projection: 'EPSG:3857', projection: 'EPSG:3857',
url: getURL(purchase_id, zone, labelDate), url: getURL(purchase_id, zone, labelDate),
tilePixelRatio: 2, tilePixelRatio: 2,
minZoom: 9, minZoom: data.zoom.min,
maxZoom: 14 maxZoom: data.zoom.max
}) })
}); });
...@@ -47,6 +46,8 @@ function addImageLayer(labelDate) { ...@@ -47,6 +46,8 @@ function addImageLayer(labelDate) {
var extent = ol.proj.transformExtent(data.boundingBox, 'EPSG:4326', 'EPSG:3857'); var extent = ol.proj.transformExtent(data.boundingBox, 'EPSG:4326', 'EPSG:3857');
map.getView().fit(extent, {duration: 800}) map.getView().fit(extent, {duration: 800})
map.getView().setMinZoom(data.zoom.min);
map.getView().setMaxZoom(data.zoom.max);
} }
}); });
} }
......
...@@ -166,5 +166,16 @@ ...@@ -166,5 +166,16 @@
</span> </span>
</a> </a>
</li> </li>
<li>
<a class="treeview " href="#" onclick="showComparisons()">
<i class="fa fa-eye showImage"></i>
<i class="fa fa-eye-slash hideImage" style="display:none"></i>
<span class="showImage">Show Images</span>
<span class="hideImage" style="display:none">Hidden Images</span>
<span class="pull-right-container">
<span class="label label-primary pull-right"></span>
</span>
</a>
</li>
</ul> </ul>
</div> </div>
\ No newline at end of file
This diff is collapsed.
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