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
4955e596
Commit
4955e596
authored
Oct 11, 2019
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab.geoint.mx:mario.chirinos/GeoInt_SIDT into dev
parents
34c5614e
b1779c9d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
60 additions
and
35 deletions
+60
-35
map.css
catalog/static/catalog/css/map.css
+2
-2
dataRetrieval.js
catalog/static/catalog/js/dataRetrieval.js
+1
-15
base_top.html
catalog/templates/base_top.html
+14
-2
map.html
catalog/templates/map.html
+0
-12
control-map.css
reports/static/reports/css/control-map.css
+1
-1
Reports_scripts.js
reports/static/reports/js/Reports_scripts.js
+11
-0
minimap.js
reports/static/reports/js/minimap.js
+11
-0
Reports.html
reports/templates/Reports.html
+8
-0
sclData.html
reports/templates/sclData.html
+12
-3
No files found.
catalog/static/catalog/css/map.css
View file @
4955e596
...
@@ -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
:
2
9
0px
;
/*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
:
2
9
0px
;
/*270px*/
bottom
:
75px
;
bottom
:
75px
;
z-index
:
1000
;
z-index
:
1000
;
background-color
:
white
;
background-color
:
white
;
...
...
catalog/static/catalog/js/dataRetrieval.js
View file @
4955e596
...
@@ -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
}
}
catalog/templates/base_top.html
View file @
4955e596
...
@@ -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 -->
...
...
catalog/templates/map.html
View file @
4955e596
...
@@ -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"
>
...
...
reports/static/reports/css/control-map.css
View file @
4955e596
.mapControl
{
.mapControl
{
width
:
3
3
%
;
width
:
3
6
%
;
height
:
auto
;
height
:
auto
;
position
:
absolute
;
position
:
absolute
;
right
:
15px
;
right
:
15px
;
...
...
reports/static/reports/js/Reports_scripts.js
View file @
4955e596
...
@@ -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({
...
...
reports/static/reports/js/minimap.js
View file @
4955e596
...
@@ -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/Reports.html
View file @
4955e596
...
@@ -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>
...
...
reports/templates/sclData.html
View file @
4955e596
...
@@ -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