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
7c3e3aa9
Commit
7c3e3aa9
authored
Oct 09, 2019
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
draw polygon btn
parent
7446daeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
sidtMap.js
catalog/static/catalog/js/sidtMap.js
+6
-0
map.html
catalog/templates/map.html
+1
-1
No files found.
catalog/static/catalog/js/sidtMap.js
View file @
7c3e3aa9
...
@@ -151,14 +151,20 @@ sidtMap.prototype.changeInteraction = function() {
...
@@ -151,14 +151,20 @@ sidtMap.prototype.changeInteraction = function() {
features
:
this
.
features
,
features
:
this
.
features
,
type
:
"Circle"
type
:
"Circle"
});
});
$
(
"#drawControl"
).
val
(
"Square"
);
$
(
"#drawControl"
).
val
(
"Square"
);
$
(
"#drawControl"
).
children
().
first
().
removeClass
(
'fa-vector-square'
);
$
(
"#drawControl"
).
children
().
first
().
addClass
(
'fa-draw-polygon'
);
}
else
{
}
else
{
this
.
interaction
=
new
ol
.
interaction
.
Draw
({
this
.
interaction
=
new
ol
.
interaction
.
Draw
({
source
:
this
.
vectorLayer
.
getSource
(),
source
:
this
.
vectorLayer
.
getSource
(),
features
:
this
.
features
,
features
:
this
.
features
,
type
:
"Polygon"
type
:
"Polygon"
});
});
$
(
"#drawControl"
).
val
(
"Polygon"
);
$
(
"#drawControl"
).
val
(
"Polygon"
);
$
(
"#drawControl"
).
children
().
first
().
removeClass
(
'fa-draw-polygon'
);
$
(
"#drawControl"
).
children
().
first
().
addClass
(
'fa-vector-square'
);
}
}
this
.
interaction
.
on
(
"drawend"
,
function
(
e
){
this
.
interaction
.
on
(
"drawend"
,
function
(
e
){
...
...
catalog/templates/map.html
View file @
7c3e3aa9
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
<!-- control para dibujar el poligono -->
<!-- control para dibujar el poligono -->
<div
id=
"drawControl"
class=
"drawControl"
onclick=
"osmap.changeInteraction()"
>
<div
id=
"drawControl"
class=
"drawControl"
onclick=
"osmap.changeInteraction()"
>
<i
class=
"fas fa-
draw-polygon
fa-2x iii"
></i>
<i
class=
"fas fa-
vector-square
fa-2x iii"
></i>
</div>
</div>
<!-- control para dibujar el poligono -->
<!-- control para dibujar el poligono -->
...
...
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