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
d50b7eed
Commit
d50b7eed
authored
May 29, 2018
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
draw button removed
parent
dac74eac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
25 deletions
+3
-25
map.css
catalog/static/css/map.css
+0
-5
sidtMap.js
catalog/static/js/sidtMap.js
+3
-17
map.html
catalog/templates/map.html
+0
-3
No files found.
catalog/static/css/map.css
View file @
d50b7eed
...
...
@@ -25,8 +25,3 @@ html, body
background-color
:
rgba
(
220
,
220
,
220
,
0.9
);
float
:
right
;
}
\ No newline at end of file
#div-draw-btn
{
text-align
:
center
;
}
\ No newline at end of file
catalog/static/js/sidtMap.js
View file @
d50b7eed
...
...
@@ -109,9 +109,10 @@ function sidtMap(divID, lng, lat, z)
sidtMap
.
prototype
=
Object
.
create
(
OpenStreetMapsClass
.
prototype
);
//------------------------------------------------------------------------------
sidtMap
.
prototype
.
draw
=
function
()
sidtMap
.
prototype
.
addInteraction
=
function
()
{
var
self
=
this
;
this
.
interaction
=
new
ol
.
interaction
.
Draw
({
source
:
this
.
vectorLayer
.
getSource
(),
features
:
this
.
features
,
...
...
@@ -120,7 +121,6 @@ sidtMap.prototype.draw = function ()
this
.
interaction
.
on
(
"drawend"
,
function
(
e
){
self
.
showCoords
(
e
.
feature
.
getGeometry
());
self
.
map
.
removeInteraction
(
self
.
interaction
);
});
this
.
interaction
.
on
(
"drawstart"
,
function
(
e
){
...
...
@@ -128,20 +128,6 @@ sidtMap.prototype.draw = function ()
});
this
.
map
.
addInteraction
(
this
.
interaction
);
this
.
map
.
addInteraction
(
this
.
selectPointerMove
);
}
sidtMap
.
prototype
.
addInteraction
=
function
()
{
var
self
=
this
;
this
.
interactionSelect
=
new
ol
.
interaction
.
Select
({
condition
:
ol
.
events
.
condition
.
pointerMove
});
this
.
map
.
addInteraction
(
this
.
interactionSelect
);
}
//------------------------------------------------------------------------------
sidtMap
.
prototype
.
onMousemove
=
function
(
e
)
...
...
catalog/templates/map.html
View file @
d50b7eed
...
...
@@ -207,9 +207,6 @@
</form>
</div>
<div
id=
"div-draw-btn"
class=
"draw-button"
>
<button
type=
"submit"
name=
"draw"
id=
"draw-btn"
class=
"btn btn-primary"
onclick=
"osmap.draw()"
><i
class=
"fa fa-object-ungroup"
></i>
Dibujar
</button>
</div>
<!-- form-group-->
{% endblock %}
...
...
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