diff --git a/01/index.html b/01/index.html index 55401e0..3883f78 100644 --- a/01/index.html +++ b/01/index.html @@ -179,6 +179,49 @@ }); }; + + function show_jalan_form(layer, geojson_string) { + const form_html = ` +
+

Tambah Jalan Baru

+
+
+
+
+ +
+ `; + layer.bindPopup(form_html).openPopup(); + } + + /** + * Menampilkan formulir sembul untuk pengisian data bidang persil tanah baru + * @param {Object} layer - Objek layer Leaflet Draw + * @param {String} geojson_string - String representasi spasial GeoJSON + * @param {Number} area_size - Luas area hasil kalkulasi sistem + */ + function show_persil_form(layer, geojson_string, area_size) { + const form_html = ` +
+

Tambah Persil Baru

+
+
+
+
+

Luas: ${area_size.toFixed(2)} m²

+ +
+ `; + layer.bindPopup(form_html).openPopup(); + } + // Merender data dari database function muat_data_feature() { fetch('tampil_feature.php').then(response => response.json()).then(res => {