fix : hapus tools yang tidak digunakan

This commit is contained in:
unknown
2026-06-09 18:32:21 +07:00
parent b7d93c3cca
commit f46be0536e
+11 -1
View File
@@ -39,7 +39,17 @@
}).addTo(map);
map.pm.addControls({
position: 'topleft', drawMarker: true, drawPolyline: true, drawPolygon: true, removalMode: true, editMode: true, dragMode: true
position: 'topleft',
drawMarker: true,
drawPolyline: true,
drawPolygon: true,
drawCircle: false, // Menyembunyikan alat Lingkaran (Circle)
drawCircleMarker: false, // Menyembunyikan alat Titik Lingkaran (CircleMarker)
drawRectangle: false, // Menyembunyikan alat Persegi (Rectangle)
drawText: false, // Menyembunyikan alat Teks
removalMode: true,
editMode: true,
dragMode: true
});
map.pm.setGlobalOptions({ allowSelfIntersection: false });