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
105f391c
Commit
105f391c
authored
Oct 10, 2019
by
Luis Dominguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new map in the selector maps from the reports section
parent
52c8e359
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
control-map.css
reports/static/reports/css/control-map.css
+1
-1
minimap.js
reports/static/reports/js/minimap.js
+11
-0
sclData.html
reports/templates/sclData.html
+12
-3
No files found.
reports/static/reports/css/control-map.css
View file @
105f391c
.mapControl
{
.mapControl
{
width
:
3
3
%
;
width
:
3
6
%
;
height
:
auto
;
height
:
auto
;
position
:
absolute
;
position
:
absolute
;
right
:
15px
;
right
:
15px
;
...
...
reports/static/reports/js/minimap.js
View file @
105f391c
...
@@ -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
;
}
}
}
}
...
...
reports/templates/sclData.html
View file @
105f391c
...
@@ -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>
...
...
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