Commit d84367ac authored by Luis Dominguez's avatar Luis Dominguez

En map.html se sustituyeron los botones de seleccion de mapas por un icono

parent 0175650a
...@@ -40,10 +40,10 @@ html, body ...@@ -40,10 +40,10 @@ html, body
} }
.mapControl{ .mapControl{
width: 15%; width: 50px;
height: auto; height: 50px;
position: absolute; position: absolute;
right: 15px; right: 20px;
bottom: 15px; bottom: 15px;
z-index: 100; z-index: 100;
background-color: white; background-color: white;
...@@ -51,3 +51,4 @@ html, body ...@@ -51,3 +51,4 @@ html, body
padding: 3px; padding: 3px;
} }
...@@ -295,18 +295,20 @@ function getRandomColor() { ...@@ -295,18 +295,20 @@ function getRandomColor() {
return color; return color;
} }
//cycle
var selectedMap = "cycle"
OpenStreetMapsClass.prototype.changeMap = function () {
OpenStreetMapsClass.prototype.changeMap = function (selectedMap) {
if(selectedMap == "light"){ if(selectedMap == "light"){
this.layers[0].setVisible(true) this.layers[0].setVisible(true)
this.layers[1].setVisible(false) this.layers[1].setVisible(false)
selectedMap = "cycle"
}else{ }else{
this.layers[1].setVisible(true) this.layers[1].setVisible(true)
this.layers[0].setVisible(false) this.layers[0].setVisible(false)
selectedMap = "light"
} }
} }
......
...@@ -241,33 +241,10 @@ ...@@ -241,33 +241,10 @@
<!-- <div class="ad"> </div> --> <!-- <div class="ad"> </div> -->
<!-- control de version de mapas --> <!-- control de version de mapas -->
<div class="mapControl"> <div class="mapControl" onclick="cambio.changeMap()">
<div id="controlMap" class="controlContainer"> <a>
<div class="row"> <i class="fas fa-layer-group fa-2x" style="padding: 7px;"></i>
<div class="col-lg-6"> </a>
<label>
<div class="baseMap" onclick="cambio.changeMap('light')">
<img src="../../static/images/light.png" width="100%" height="100%">
<span class="mapSelector">
<input id="light" type="radio" name="layerOption" checked="">
<span>light</span>
</span>
</div>
</label>
</div>
<div class="col-lg-6">
<label>
<div class="baseMap" onclick="cambio.changeMap('cycle')">
<img src="../../static/images/cycle.png" width="100%" height="100%">
<span class="mapSelector">
<input id="streets" type="radio" name="layerOption">
<span>cycle</span>
</span>
</div>
</label>
</div>
</div>
</div>
</div> </div>
<!-- control de version de mapas --> <!-- control de version de mapas -->
......
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