Commit 4955e596 authored by Emmanuel René Huchim Puc's avatar Emmanuel René Huchim Puc

Merge branch 'dev' of gitlab.geoint.mx:mario.chirinos/GeoInt_SIDT into dev

parents 34c5614e b1779c9d
...@@ -43,7 +43,7 @@ html, body ...@@ -43,7 +43,7 @@ html, body
width: 50px; width: 50px;
height: 50px; height: 50px;
position: absolute; position: absolute;
right: 20px; /*270px*/ right: 290px; /*270px*/
bottom: 15px; bottom: 15px;
z-index: 1000; z-index: 1000;
background-color: white; background-color: white;
...@@ -56,7 +56,7 @@ html, body ...@@ -56,7 +56,7 @@ html, body
width: 50px; width: 50px;
height: 50px; height: 50px;
position: absolute; position: absolute;
right: 20px; /*270px*/ right: 290px; /*270px*/
bottom: 75px; bottom: 75px;
z-index: 1000; z-index: 1000;
background-color: white; background-color: white;
......
...@@ -393,7 +393,7 @@ function showProductTabPane() { ...@@ -393,7 +393,7 @@ function showProductTabPane() {
$('#control-sidebar-settings-tab').removeClass("active"); $('#control-sidebar-settings-tab').removeClass("active");
$('#control-sidebar-home-tab').addClass("active"); $('#control-sidebar-home-tab').addClass("active");
$('aside').addClass("control-sidebar-open"); $('aside').addClass("control-sidebar-open");
moveLayer();
} }
function showCarProductsTabPanel(){ function showCarProductsTabPanel(){
...@@ -674,17 +674,3 @@ $(document).ready(function () { ...@@ -674,17 +674,3 @@ $(document).ready(function () {
}); });
}); });
var imc = true;
function moveLayer() {
if(imc){
setTimeout(function() {
document.getElementById("idmapControl").style.right = "290px";
},500)
imc = false
}else{
setTimeout(function() {
document.getElementById("idmapControl").style.right = "20px";
},500)
imc = true
}
}
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
{% else %} {% else %}
<li id="panelShowCart"> <li id="panelShowCart">
{% if showcart %} {% if showcart %}
<a id="product-list-toggle" href="#" data-toggle="control-sidebar" onclick = "moveLayer()" > <a id="product-list-toggle" href="#" data-toggle="control-sidebar">
<i class="fa fa-shopping-cart"></i></a> <i class="fa fa-shopping-cart"></i></a>
{% endif %} {% endif %}
</li> </li>
...@@ -214,7 +214,19 @@ ...@@ -214,7 +214,19 @@
</aside> </aside>
<!-- /.control-sidebar --> <!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed immediately after the control sidebar --> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar -->
<div class="control-sidebar-bg"></div> <div class="control-sidebar-bg">
<!-- control de version de mapas -->
<div id="idmapControl" class="mapControl" onclick="cambio.changeMap()">
<i class="fas fa-layer-group fa-2x iii"></i>
</div>
<!-- control de version de mapas -->
<!-- control para dibujar el poligono -->
<div id="drawControl" class="drawControl" onclick="osmap.changeInteraction()">
<i class="fas fa-vector-square fa-2x iii"></i>
</div>
<!-- control para dibujar el poligono -->
</div>
</div> </div>
<!-- ./wrapper --> <!-- ./wrapper -->
......
...@@ -240,18 +240,6 @@ ...@@ -240,18 +240,6 @@
<!-- <div class="ad"> </div> --> <!-- <div class="ad"> </div> -->
<!-- control de version de mapas -->
<div id="idmapControl" class="mapControl" onclick="cambio.changeMap()">
<i class="fas fa-layer-group fa-2x iii"></i>
</div>
<!-- control de version de mapas -->
<!-- control para dibujar el poligono -->
<div id="drawControl" class="drawControl" onclick="osmap.changeInteraction()">
<i class="fas fa-vector-square fa-2x iii"></i>
</div>
<!-- control para dibujar el poligono -->
<footer class=" page-footer font-small special-color-dark pt-5" style="bottom: 0; position: absolute"> <footer class=" page-footer font-small special-color-dark pt-5" style="bottom: 0; position: absolute">
<!-- Footer Elements --> <!-- Footer Elements -->
<div class="container"> <div class="container">
......
.mapControl{ .mapControl{
width: 33%; width: 36%;
height: auto; height: auto;
position: absolute; position: absolute;
right: 15px; right: 15px;
......
...@@ -79,6 +79,9 @@ function showMyModalSetTitle(name, data) { ...@@ -79,6 +79,9 @@ function showMyModalSetTitle(name, data) {
$('#myModalTitle').empty(); $('#myModalTitle').empty();
$('#myModalTitle').append(name); $('#myModalTitle').append(name);
$("#mapmodal").modal(); $("#mapmodal").modal();
//console.log(data)
document.getElementById("polygonText").value = data;
setTimeout(function () { setTimeout(function () {
...@@ -88,6 +91,14 @@ function showMyModalSetTitle(name, data) { ...@@ -88,6 +91,14 @@ function showMyModalSetTitle(name, data) {
} }
function copyPolygonText(){
const textarea = document.getElementById("polygonText");
textarea.select();
document.execCommand('copy');
//console.log("copy")
}
function createmap(data) { function createmap(data) {
/*var map = new ol.Map({ /*var map = new ol.Map({
......
...@@ -31,6 +31,13 @@ const night = new ol.layer.Tile({ ...@@ -31,6 +31,13 @@ const night = new ol.layer.Tile({
}) })
}); });
const cycle = new ol.layer.Tile({
name: 'mapbox',
source: new ol.source.XYZ({
url: 'https://api.tiles.mapbox.com/v4/mapbox.outdoors/{z}/{x}/{y}.png?access_token=' + MAPBOX_ACCESS_TOKEN
}),
});
const polygonLayer = new ol.layer.Vector({ const polygonLayer = new ol.layer.Vector({
name: 'polygon', name: 'polygon',
...@@ -299,6 +306,10 @@ function changeMap(selectedMap) { ...@@ -299,6 +306,10 @@ function changeMap(selectedMap) {
map.getLayers().insertAt(0, night); map.getLayers().insertAt(0, night);
currentMap = night; currentMap = night;
break; break;
case 'cycle':
map.getLayers().insertAt(0, cycle);
currentMap = cycle;
break;
} }
} }
......
...@@ -310,7 +310,15 @@ ...@@ -310,7 +310,15 @@
<div id="map" class="map"></div> <div id="map" class="map"></div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<div align = "left">
<textarea id ="polygonText" readonly rows="5" style="width: 61em; resize:none; font-size: 7pt;">
POLYGON
</textarea>
</div>
<button style="float: left; type="button" class="btn btn-default" onclick="copyPolygonText()">Copy polygon</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div> </div>
</div> </div>
......
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
<div class="mapControl" style=""> <div class="mapControl" style="">
<div id="controlMap" class="controlContainer"> <div id="controlMap" class="controlContainer">
<div class="row"> <div class="row">
<div class="col-lg-4"> <div class="col-lg-3">
<div class="baseMap" onclick="changeMap('light')"> <div class="baseMap" onclick="changeMap('light')">
<img src="../../static/images/light.png" width="100%" height="100%"> <img src="../../static/images/light.png" width="100%" height="100%">
<span class="mapSelector"> <span class="mapSelector">
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
</span> </span>
</div> </div>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-3">
<div class="baseMap" onclick="changeMap('streets')"> <div class="baseMap" onclick="changeMap('streets')">
<img src="../../static/images/Streets.png" width="100%" height="100%"> <img src="../../static/images/Streets.png" width="100%" height="100%">
<span class="mapSelector"> <span class="mapSelector">
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
</span> </span>
</div> </div>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-3">
<div class="baseMap" onclick="changeMap('night')"> <div class="baseMap" onclick="changeMap('night')">
<img src="../../static/images/night.png" width="100%" height="100%"> <img src="../../static/images/night.png" width="100%" height="100%">
<span class="mapSelector"> <span class="mapSelector">
...@@ -195,6 +195,15 @@ ...@@ -195,6 +195,15 @@
</span> </span>
</div> </div>
</div> </div>
<div class="col-lg-3">
<div class="baseMap" onclick="changeMap('cycle')">
<img src="../../static/images/cycle.png" width="100%" height="100%">
<span class="mapSelector">
<input id="cycle" type="radio" name="layerOption">
<span>Cycle</span>
</span>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
......
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