Commit 7a1c1270 authored by Muhamad's avatar Muhamad

error

parent 60eaca51
......@@ -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'),
......
......@@ -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;
......
......@@ -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">
......
......@@ -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' %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment