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
28075124
Commit
28075124
authored
Mar 14, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.geoint.mx/mario.chirinos/GeoInt_SIDT
into dev
parents
00941df5
d769ba13
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
175 deletions
+110
-175
scldata.css
reports/static/reports/css/scldata.css
+29
-2
draggable.js
reports/static/reports/js/draggable.js
+16
-3
minimap.js
reports/static/reports/js/minimap.js
+5
-4
aside.html
reports/templates/aside.html
+11
-0
sclData.html
reports/templates/sclData.html
+49
-166
No files found.
reports/static/reports/css/scldata.css
View file @
28075124
...
...
@@ -75,7 +75,7 @@ body
border-radius
:
50%
;
}
#
draggable
{
.
draggable
{
padding
:
0px
;
position
:
absolute
;
z-index
:
-1
;
...
...
@@ -84,6 +84,33 @@ body
opacity
:
.5
;
}
#
draggable
:hover
{
.
draggable
:hover
{
opacity
:
1
;
}
.title
{
position
:
absolute
;
top
:
2%
;
left
:
6%
;
width
:
100%
;
height
:
100%
;
}
.title
.info
{
opacity
:
0.5
;
}
.title
.info
:hover
{
opacity
:
1
;
}
#minimap
{
width
:
100%
;
height
:
100%
;
margin
:
0
;
padding
:
0
;
position
:
fixed
;
}
#reportPage
{
height
:
940px
!important
;
}
\ No newline at end of file
reports/static/reports/js/draggable.js
View file @
28075124
...
...
@@ -41,14 +41,27 @@ function dragElement(elmnt) {
function
showGraph
(){
if
(
$
(
'.showChart'
).
is
(
':visible'
)){
$
(
"#draggable"
).
css
(
'z-index'
,
10
);
$
(
"#draggable
Chart
"
).
css
(
'z-index'
,
10
);
$
(
".showChart"
).
hide
();
$
(
".hideChart"
).
show
();
}
else
{
$
(
"#draggable"
).
css
(
'z-index'
,
-
1
);
$
(
"#draggable
Chart
"
).
css
(
'z-index'
,
-
1
);
$
(
".showChart"
).
show
();
$
(
".hideChart"
).
hide
();
}
}
dragElement
(
document
.
getElementById
(
"draggable"
));
\ No newline at end of file
function
showComparisons
()
{
if
(
$
(
'.showImage'
).
is
(
':visible'
))
{
$
(
"#draggableImage"
).
css
(
'z-index'
,
10
);
$
(
".showImage"
).
hide
();
$
(
".hideImage"
).
show
();
}
else
{
$
(
"#draggableImage"
).
css
(
'z-index'
,
-
1
);
$
(
".showImage"
).
show
();
$
(
".hideImage"
).
hide
();
}
}
dragElement
(
document
.
getElementById
(
"draggableChart"
));
dragElement
(
document
.
getElementById
(
"draggableImage"
));
\ No newline at end of file
reports/static/reports/js/minimap.js
View file @
28075124
...
...
@@ -16,8 +16,7 @@ var map = new ol.Map({
view
:
new
ol
.
View
({
center
:
ol
.
proj
.
fromLonLat
([
-
99.19
,
19.61
]),
zoom
:
4
,
minZoom
:
4
,
maxZoom
:
14
minZoom
:
4
})
});
...
...
@@ -37,8 +36,8 @@ function addImageLayer(labelDate) {
projection
:
'EPSG:3857'
,
url
:
getURL
(
purchase_id
,
zone
,
labelDate
),
tilePixelRatio
:
2
,
minZoom
:
9
,
maxZoom
:
14
minZoom
:
data
.
zoom
.
min
,
maxZoom
:
data
.
zoom
.
max
})
});
...
...
@@ -47,6 +46,8 @@ function addImageLayer(labelDate) {
var
extent
=
ol
.
proj
.
transformExtent
(
data
.
boundingBox
,
'EPSG:4326'
,
'EPSG:3857'
);
map
.
getView
().
fit
(
extent
,
{
duration
:
800
})
map
.
getView
().
setMinZoom
(
data
.
zoom
.
min
);
map
.
getView
().
setMaxZoom
(
data
.
zoom
.
max
);
}
});
}
...
...
reports/templates/aside.html
View file @
28075124
...
...
@@ -166,5 +166,16 @@
</span>
</a>
</li>
<li>
<a
class=
"treeview "
href=
"#"
onclick=
"showComparisons()"
>
<i
class=
"fa fa-eye showImage"
></i>
<i
class=
"fa fa-eye-slash hideImage"
style=
"display:none"
></i>
<span
class=
"showImage"
>
Show Images
</span>
<span
class=
"hideImage"
style=
"display:none"
>
Hidden Images
</span>
<span
class=
"pull-right-container"
>
<span
class=
"label label-primary pull-right"
></span>
</span>
</a>
</li>
</ul>
</div>
\ No newline at end of file
reports/templates/sclData.html
View file @
28075124
This diff is collapsed.
Click to expand it.
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