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
06ca6105
Commit
06ca6105
authored
Oct 10, 2019
by
irving
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.geoint.mx/mario.chirinos/GeoInt_SIDT
into dev
parents
518b7df5
aab1018f
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
112 additions
and
10 deletions
+112
-10
map.css
catalog/static/catalog/css/map.css
+15
-2
dataRetrieval.js
catalog/static/catalog/js/dataRetrieval.js
+17
-1
sidtMap.js
catalog/static/catalog/js/sidtMap.js
+47
-0
base_top.html
catalog/templates/base_top.html
+2
-2
map.html
catalog/templates/map.html
+7
-1
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.
catalog/static/catalog/css/map.css
View file @
06ca6105
...
@@ -43,9 +43,22 @@ html, body
...
@@ -43,9 +43,22 @@ html, body
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
position
:
absolute
;
position
:
absolute
;
right
:
20px
;
right
:
20px
;
/*270px*/
bottom
:
15px
;
bottom
:
15px
;
z-index
:
100
;
z-index
:
1000
;
background-color
:
white
;
border-radius
:
5px
;
border
:
none
;
}
.drawControl
{
width
:
50px
;
height
:
50px
;
position
:
absolute
;
right
:
20px
;
/*270px*/
bottom
:
75px
;
z-index
:
1000
;
background-color
:
white
;
background-color
:
white
;
border-radius
:
5px
;
border-radius
:
5px
;
border
:
none
;
border
:
none
;
...
...
catalog/static/catalog/js/dataRetrieval.js
View file @
06ca6105
...
@@ -393,6 +393,7 @@ function showProductTabPane() {
...
@@ -393,6 +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
(){
...
@@ -545,7 +546,7 @@ $(document).ready(function () {
...
@@ -545,7 +546,7 @@ $(document).ready(function () {
});
});
}
else
{
}
else
{
noData
();
noData
();
//activa la alerta
hideWaitingModal
();
hideWaitingModal
();
$
(
'aside'
).
removeClass
(
"control-sidebar-open"
);
$
(
'aside'
).
removeClass
(
"control-sidebar-open"
);
//Comenté la siguiente funcion porque causaba error al ser llamada y no aportaba al algun cambio al proyecto
//Comenté la siguiente funcion porque causaba error al ser llamada y no aportaba al algun cambio al proyecto
...
@@ -672,3 +673,18 @@ $(document).ready(function () {
...
@@ -672,3 +673,18 @@ $(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/static/catalog/js/sidtMap.js
View file @
06ca6105
...
@@ -134,6 +134,53 @@ sidtMap.prototype.addInteraction = function()
...
@@ -134,6 +134,53 @@ sidtMap.prototype.addInteraction = function()
});
});
this
.
map
.
addInteraction
(
this
.
interaction
);
this
.
map
.
addInteraction
(
this
.
interaction
);
$
(
"#drawControl"
).
val
(
"Polygon"
);
}
sidtMap
.
prototype
.
changeInteraction
=
function
()
{
this
.
map
.
removeInteraction
(
this
.
interaction
);
var
self
=
this
;
var
drawValue
=
$
(
"#drawControl"
).
val
();
if
(
drawValue
!==
'Square'
)
{
this
.
interaction
=
new
ol
.
interaction
.
Draw
({
source
:
this
.
vectorLayer
.
getSource
(),
geometryFunction
:
new
ol
.
interaction
.
Draw
.
createRegularPolygon
(
4
,
Math
.
PI
/
4
),
features
:
this
.
features
,
type
:
"Circle"
});
$
(
"#drawControl"
).
val
(
"Square"
);
$
(
"#drawControl"
).
children
().
first
().
removeClass
(
'fa-vector-square'
);
$
(
"#drawControl"
).
children
().
first
().
addClass
(
'fa-draw-polygon'
);
}
else
{
this
.
interaction
=
new
ol
.
interaction
.
Draw
({
source
:
this
.
vectorLayer
.
getSource
(),
features
:
this
.
features
,
type
:
"Polygon"
});
$
(
"#drawControl"
).
val
(
"Polygon"
);
$
(
"#drawControl"
).
children
().
first
().
removeClass
(
'fa-draw-polygon'
);
$
(
"#drawControl"
).
children
().
first
().
addClass
(
'fa-vector-square'
);
}
this
.
interaction
.
on
(
"drawend"
,
function
(
e
){
self
.
showCoords
(
e
.
feature
.
getGeometry
());
let
processTreeview
=
$
(
'li.processTreeview a'
);
let
parentClassList
=
processTreeview
[
0
].
parentElement
.
classList
;
if
(
!
parentClassList
.
contains
(
'menu-open'
)){
processTreeview
.
click
();
}
});
this
.
interaction
.
on
(
"drawstart"
,
function
(
e
){
self
.
removePolygon
();
});
this
.
map
.
addInteraction
(
this
.
interaction
);
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
sidtMap
.
prototype
.
onMousemove
=
function
(
e
)
sidtMap
.
prototype
.
onMousemove
=
function
(
e
)
...
...
catalog/templates/base_top.html
View file @
06ca6105
...
@@ -100,8 +100,8 @@
...
@@ -100,8 +100,8 @@
{% else %}
{% else %}
<li
id=
"panelShowCart"
>
<li
id=
"panelShowCart"
>
{% if showcart %}
{% if showcart %}
<a
id=
"product-list-toggle"
href=
"#"
data-toggle=
"control-sidebar"
><i
<a
id=
"product-list-toggle"
href=
"#"
data-toggle=
"control-sidebar"
onclick =
"moveLayer()"
>
class=
"fa fa-shopping-cart"
></i></a>
<i
class=
"fa fa-shopping-cart"
></i></a>
{% endif %}
{% endif %}
</li>
</li>
{% endif %}
{% endif %}
...
...
catalog/templates/map.html
View file @
06ca6105
...
@@ -241,11 +241,17 @@
...
@@ -241,11 +241,17 @@
<!-- <div class="ad"> </div> -->
<!-- <div class="ad"> </div> -->
<!-- control de version de mapas -->
<!-- control de version de mapas -->
<div
class=
"mapControl"
onclick=
"cambio.changeMap()"
>
<div
id=
"idmapControl"
class=
"mapControl"
onclick=
"cambio.changeMap()"
>
<i
class=
"fas fa-layer-group fa-2x iii"
></i>
<i
class=
"fas fa-layer-group fa-2x iii"
></i>
</div>
</div>
<!-- control de version de mapas -->
<!-- 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 @
06ca6105
.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 @
06ca6105
...
@@ -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 @
06ca6105
...
@@ -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