Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OKU-GIS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhamad
OKU-GIS
Commits
7a1c1270
Commit
7a1c1270
authored
Jul 26, 2021
by
Muhamad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error
parent
60eaca51
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
18 deletions
+47
-18
Application/__pycache__/edit.cpython-37.pyc
Application/__pycache__/edit.cpython-37.pyc
+0
-0
Application/__pycache__/urls.cpython-37.pyc
Application/__pycache__/urls.cpython-37.pyc
+0
-0
Application/urls.py
Application/urls.py
+1
-1
templates/includes/js-o.html
templates/includes/js-o.html
+20
-16
templates/includes/modal.html
templates/includes/modal.html
+1
-1
templates/layout/layout.html
templates/layout/layout.html
+25
-0
No files found.
Application/__pycache__/edit.cpython-37.pyc
View file @
7a1c1270
No preview for this file type
Application/__pycache__/urls.cpython-37.pyc
View file @
7a1c1270
No preview for this file type
Application/urls.py
View file @
7a1c1270
...
...
@@ -8,7 +8,7 @@ app_name = 'apps'
urlpatterns
=
[
path
(
''
,
views
.
Dashboard
.
as_view
(),
name
=
'dashboard'
),
path
(
'editkelurahan'
,
views
.
editkelurahan
,
name
=
'editkelurahan'
),
path
(
'editkelurahan'
,
edit
.
editkelurahan
,
name
=
'editkelurahan'
),
path
(
'perbaikan'
,
views
.
perbaikanrenovasi
,
name
=
'perbaikan'
),
path
(
'loadDetail'
,
views
.
loadDetail
,
name
=
'loadDetail'
),
...
...
templates/includes/js-o.html
View file @
7a1c1270
...
...
@@ -263,7 +263,7 @@
<tr>
<td>
<input class="hidden" id="kode_desa_dagri" value="`
+
feature
.
administrasi
.
f1
+
`"></input>
<a
id='btn_edit_kelurahan'
class='btn
<a
href="/editkelurahan?kode_dagri=`
+
encodeURIComponent
(
feature
.
administrasi
.
f1
)
+
`"
class='btn
btn-default btn_edit_kelurahan' style="left: 130px;">Edit</a>
</td>
</tr>
...
...
@@ -657,6 +657,11 @@
$
(
document
).
on
(
"
click
"
,
"
#btn_edit_kelurahan
"
,
function
()
{
var
map_kel
=
L
.
map
(
'
map-kelurahan
'
,
{
editable
:
true
,
zoomControl
:
false
,
...
...
@@ -668,10 +673,6 @@
minZoom
:
4
,
}).
addTo
(
map_kel
);
var
polygon_kel
=
L
.
polygon
(
null
).
addTo
(
map_kel
)
$
(
document
).
on
(
"
click
"
,
"
#btn_edit_kelurahan
"
,
function
()
{
polygon_kel
.
clearLayers
()
$
(
"
#edit_kelurahan
"
).
css
(
"
display
"
,
"
block
"
)
var
id
=
$
(
"
#kode_desa_dagri
"
).
val
()
...
...
@@ -720,7 +721,9 @@
list_poly_edit
.
push
(
polygigi
);
};
polygon_kel
.
addData
(
list_poly_edit
)
var
polygon_kel
=
L
.
polygon
(
list_poly_edit
).
addTo
(
map_kel
)
polygon_kel
.
enableEdit
();
...
...
@@ -1910,7 +1913,10 @@
var
checkBox
=
document
.
getElementById
(
"
geo_jalan
"
);
if
(
checkBox
.
checked
==
true
)
{
map
.
on
(
"
movestart
"
,
function
()
{
geo_jalan
.
clearLayers
();
if
(
map
.
hasLayer
(
geo_jalan
))
{
geo_jalan
.
clearLayers
()
geo_jalan
.
remove
()
}
});
map
.
on
(
"
moveend
"
,
function
(
e
)
{
...
...
@@ -2435,8 +2441,6 @@
tempLatLng
=
latlng
;
return
;
}
alert
(
latlng
)
totalDistance
+=
tempLatLng
.
distanceTo
(
latlng
);
tempLatLng
=
latlng
;
...
...
templates/includes/modal.html
View file @
7a1c1270
...
...
@@ -92,7 +92,7 @@
</div>
</div>
<div
id=
"modal_detail"
class=
"modal fade mymodal"
style=
"padding-top: 0px;padding-bottom: 0px;right: -11px;"
>
<div
id=
"modal_detail"
class=
"modal fade mymodal"
style=
"padding-top: 0px;padding-bottom: 0px;right: -11px;
width: 100%!important;
"
>
<div
class=
"modal-dialog modal-lg"
style=
"width: 100%;height: 100%;margin: 0;bottom: 0;"
>
<div
class=
"modal-content"
style=
"height: 100%;"
>
<div
class=
"modal-header bg-info"
style=
"background-color:#28343a"
>
...
...
templates/layout/layout.html
View file @
7a1c1270
...
...
@@ -453,6 +453,31 @@
#map-insert
>
div
.leaflet-control-container
{
display
:
block
;
}
#map-insert
>
div
.leaflet-control-container
>
div
.leaflet-top.leaflet-left
>
div
:nth-child
(
2
)
{
display
:
none
;
}
.leaflet-draw-draw-polygon
,
.leaflet-draw-draw-rectangle
,
.leaflet-draw-draw-circle
,
.leaflet-draw-draw-marker
,
.leaflet-draw-draw-circlemarker
{
display
:
none
!important
;
}
.leaflet-draw-toolbar
{
position
:
absolute
;
}
.leaflet-draw-actions
{
padding
:
0px
0px
0px
40px
;
list-style-type
:
none
;
}
.leaflet-container
ul
li
a
{
color
:
white
;
}
</style>
{% include 'includes/css-o.html' %} {% include 'includes/css-m.html' %}
...
...
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