menambahkan jalan dan parsil di portal
This commit is contained in:
@@ -86,6 +86,10 @@ const LocateControl = L.Control.extend({
|
||||
|
||||
container.onclick = function(e) {
|
||||
e.stopPropagation();
|
||||
if (!window.isSecureContext) {
|
||||
showToast('Fitur lokasi hanya tersedia melalui HTTPS.', 'error');
|
||||
return;
|
||||
}
|
||||
showToast('Mencari lokasi...', 'success');
|
||||
map.locate({ setView: true, maxZoom: 17, enableHighAccuracy: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user