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
90a05616
Commit
90a05616
authored
Mar 15, 2019
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default date in minimap
parent
c895220f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
15 deletions
+20
-15
minimap.js
reports/static/reports/js/minimap.js
+5
-2
sclData.html
reports/templates/sclData.html
+15
-13
No files found.
reports/static/reports/js/minimap.js
View file @
90a05616
...
@@ -20,6 +20,10 @@ var map = new ol.Map({
...
@@ -20,6 +20,10 @@ var map = new ol.Map({
})
})
});
});
if
(
labels
&&
labels
.
length
>
0
)
{
addImageLayer
(
labels
[
0
])
}
//addLayer
//addLayer
function
addImageLayer
(
labelDate
)
{
function
addImageLayer
(
labelDate
)
{
$
.
ajax
({
$
.
ajax
({
...
@@ -29,8 +33,7 @@ function addImageLayer(labelDate) {
...
@@ -29,8 +33,7 @@ function addImageLayer(labelDate) {
url
:
'/reports/tiles/tileinfo'
,
url
:
'/reports/tiles/tileinfo'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
map
.
removeLayer
(
imagelayer
)
map
.
removeLayer
(
imagelayer
)
console
.
log
(
"response "
,
data
);
console
.
log
({
purchase_id
,
zone
,
labelDate
});
var
xyz
=
new
ol
.
layer
.
Tile
({
var
xyz
=
new
ol
.
layer
.
Tile
({
opacity
:
1
,
opacity
:
1
,
source
:
new
ol
.
source
.
XYZ
({
source
:
new
ol
.
source
.
XYZ
({
...
...
reports/templates/sclData.html
View file @
90a05616
...
@@ -120,11 +120,11 @@
...
@@ -120,11 +120,11 @@
<section
class=
"content"
>
<section
class=
"content"
>
<div
class=
"row col-lg-11 title"
>
<div
class=
"row col-lg-11 title"
>
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<h1>
{{ report_name }}
</h1>
<h1>
{{ report_name }}
</h1>
</div>
</div>
<div
class=
"col-md-12 info"
style=
"margin-bottom: 15px;"
>
<div
class=
"col-md-12 info"
style=
"margin-bottom: 15px;"
>
<div
class=
"box box-success"
>
<div
class=
"box box-success"
>
<div
class=
"box-body with-border"
>
<div
class=
"box-body with-border"
>
...
@@ -291,17 +291,19 @@
...
@@ -291,17 +291,19 @@
let
endDate
=
"{{ endDate }}"
;
let
endDate
=
"{{ endDate }}"
;
let
clouds
=
"{{ clouds }}"
;
let
clouds
=
"{{ clouds }}"
;
let
oldLabel
=
"{{defaultDataSet}}"
;
let
oldLabel
=
"{{defaultDataSet}}"
;
var
config
=
{{
graphData
}}
let
labels
=
{{
labels
}};
config
.
options
=
{
var
config
=
{{
graphData
}};
responsive
:
true
,
maintainAspectRatio
:
false
,
config
.
options
=
{
// scales: { xAxes: [{ stacked: true }], yAxes: [{ stacked: true }] },
responsive
:
true
,
legend
:
{
maintainAspectRatio
:
false
,
display
:
true
,
// scales: { xAxes: [{ stacked: true }], yAxes: [{ stacked: true }] },
onClick
:
newLegendClickHandler
,
legend
:
{
}
display
:
true
,
};
onClick
:
newLegendClickHandler
,
console
.
log
(
config
);
}
};
console
.
log
(
config
);
{
%
endautoescape
%
}
{
%
endautoescape
%
}
</script>
</script>
<script
type=
"text/javascript"
src=
"{% static 'reports/js/reportImg.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'reports/js/reportImg.js' %}"
></script>
...
...
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