edit file
This commit is contained in:
+2
-2
@@ -148,7 +148,7 @@ map.on('click', function(e) {
|
|||||||
const lat = e.latlng.lat;
|
const lat = e.latlng.lat;
|
||||||
const lng = e.latlng.lng;
|
const lng = e.latlng.lng;
|
||||||
|
|
||||||
const form = `
|
const form =
|
||||||
<form id="formInput">
|
<form id="formInput">
|
||||||
Nama SPBU:<br>
|
Nama SPBU:<br>
|
||||||
<input type="text" name="nama_spbu" required><br>
|
<input type="text" name="nama_spbu" required><br>
|
||||||
@@ -167,7 +167,7 @@ map.on('click', function(e) {
|
|||||||
|
|
||||||
<button type="submit">Simpan</button>
|
<button type="submit">Simpan</button>
|
||||||
</form>
|
</form>
|
||||||
`;
|
;
|
||||||
|
|
||||||
L.popup().setLatLng(e.latlng).setContent(form).openOn(map);
|
L.popup().setLatLng(e.latlng).setContent(form).openOn(map);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user