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
7e1d75b1
Commit
7e1d75b1
authored
Dec 15, 2021
by
Muhamad
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.khansia.co.id/Nahrowi/oku-gis
parents
3ee9305b
9e1c7e61
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
0 deletions
+45
-0
Application/__pycache__/views.cpython-36.pyc
Application/__pycache__/views.cpython-36.pyc
+0
-0
templates/includes/js-o.html
templates/includes/js-o.html
+41
-0
templates/includes/modal.html
templates/includes/modal.html
+4
-0
No files found.
Application/__pycache__/views.cpython-36.pyc
View file @
7e1d75b1
No preview for this file type
templates/includes/js-o.html
View file @
7e1d75b1
...
@@ -66,6 +66,7 @@
...
@@ -66,6 +66,7 @@
var
result_kec
=
JSON
.
parse
(
""
+
kecamatan
+
""
);
var
result_kec
=
JSON
.
parse
(
""
+
kecamatan
+
""
);
var
kelurahan
=
"
{{ kelurahan }}
"
.
replace
(
/'/g
,
'
"
'
);
var
kelurahan
=
"
{{ kelurahan }}
"
.
replace
(
/'/g
,
'
"
'
);
var
result_kel
=
JSON
.
parse
(
""
+
kelurahan
+
""
)
var
result_kel
=
JSON
.
parse
(
""
+
kelurahan
+
""
)
var
geo_batas_kel
=
batas_desa_desa
();
var
geo_batas_kel
=
batas_desa_desa
();
...
@@ -786,6 +787,46 @@
...
@@ -786,6 +787,46 @@
},
},
mouseout
:
function
(
e
)
{
mouseout
:
function
(
e
)
{
geo_batas_kec
.
resetStyle
(
e
.
target
);
geo_batas_kec
.
resetStyle
(
e
.
target
);
},
click
:
function
(
e
)
{
$
(
"
modal_kecamatan
"
).
modal
(
'
show
'
);
var
geocodeService
=
L
.
esri
.
Geocoding
.
geocodeService
();
var
geocoderNominatim
=
new
L
.
Control
.
Geocoder
.
Nominatim
();
var
geogeo
=
geocodeService
.
reverse
().
latlng
(
e
.
latlng
).
run
(
function
(
error
,
result
)
{
console
.
log
(
feature
.
administrasi
.
f1
)
content_edit_kec
=
`
<div class="modal-dialog modal-md">
<div class="modal-content">
<div class="modal-header bg-info">
<button type="button" class="close" data-dismiss="modal" onclick="destroyfade()">×</button>
<h6 class="modal-title">Delete Point</h6>
</div>
<div class="modal-body" style="overflow-x: hidden;max-height: 300px;overflow-y: scroll;padding-left: 15px;">
<div id="map-for-delete" style="width: 400px;height: 300px;position: relative;margin: 10px;"></div>
<input style="display:none;" id="id_kec" type="text" class="form-control" value="`
+
feature
.
administrasi
.
f1
+
`"required>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" style="margin-top: 15px;">Nama Kecamatan</label>
<div class="col-lg-9">
<input id="nama_kec" type="text" class="form-control" value="`
+
feature
.
administrasi
.
f2
+
`"required>
</div>
</div>
</div>
</div>
<hr>
<div class="modal-footer">
<button type="button" class="btn btn-info" id="deletepointot">Hapus</button>
</div>
</div>
</div>`
;
$
(
"
#modal_kecamatan
"
).
html
(
content_edit_kec
)
});
}
}
});
});
}
}
...
...
templates/includes/modal.html
View file @
7e1d75b1
...
@@ -366,6 +366,10 @@
...
@@ -366,6 +366,10 @@
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"modal_kecamatan"
tabindex=
"-1"
role=
"dialog"
>
</div>
<div
class=
"modal fade"
id=
"modal_detail_kelurahan"
tabindex=
"-1"
role=
"dialog"
>
<div
class=
"modal fade"
id=
"modal_detail_kelurahan"
tabindex=
"-1"
role=
"dialog"
>
<div
class=
"modal-dialog modal-md"
style=
"width: 820px;max-height: 500px;min-height: 500px;"
>
<div
class=
"modal-dialog modal-md"
style=
"width: 820px;max-height: 500px;min-height: 500px;"
>
<div
class=
"modal-content"
style=
"border-radius:10px;max-height: 500px;min-height: 500px;"
>
<div
class=
"modal-content"
style=
"border-radius:10px;max-height: 500px;min-height: 500px;"
>
...
...
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