Commit 7e1d75b1 authored by Muhamad's avatar Muhamad

Merge branch 'master' of http://git.khansia.co.id/Nahrowi/oku-gis

parents 3ee9305b 9e1c7e61
...@@ -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()">&times;</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)
});
} }
}); });
} }
......
...@@ -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;">
......
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