Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
d84367ac
Commit
d84367ac
authored
Oct 03, 2019
by
Luis Dominguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
En map.html se sustituyeron los botones de seleccion de mapas por un icono
parent
0175650a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
33 deletions
+13
-33
map.css
catalog/static/catalog/css/map.css
+4
-3
openLayers4.js
catalog/static/catalog/js/openLayers4.js
+5
-3
map.html
catalog/templates/map.html
+4
-27
No files found.
catalog/static/catalog/css/map.css
View file @
d84367ac
...
@@ -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
:
15
px
;
right
:
20
px
;
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
;
}
}
catalog/static/catalog/js/openLayers4.js
View file @
d84367ac
...
@@ -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"
}
}
}
}
...
...
catalog/templates/map.html
View file @
d84367ac
...
@@ -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 -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment