ppup sizeing

This commit is contained in:
='fauz
2025-07-03 01:25:38 +07:00
parent 8e84a142c7
commit aa83cb75f8
3 changed files with 19 additions and 28 deletions
+9 -6
View File
@@ -11,6 +11,9 @@
.select2-selection__arrow {
display: block !important;
}
.custom-popup {
font-size: 8px; /* Atur ukuran sesuai kebutuhan */
}
</style>
</head>
@@ -316,7 +319,7 @@
<li>KOPERASI - ${provKoperasiHTML} </li>
`;
layer.bindPopup(popupContent).openPopup(e.latlng);
layer.bindPopup(popupContent, {className: 'custom-popup'}).openPopup(e.latlng);
} else if (currentLevel === 'kabupatenkota') {
const province_code = localStorage.getItem('kode_provinsi');
@@ -359,7 +362,7 @@
<li>KOPERASI - ${kabkoperasiHTML} </li>
`;
layer.bindPopup(popupContent).openPopup(e.latlng);
layer.bindPopup(popupContent, {className:'custom-popup'}).openPopup(e.latlng);
} else if (currentLevel === 'kecamatan'){
const province_code = localStorage.getItem('kode_provinsi')
@@ -405,7 +408,7 @@
<li>SERAPAN - ${kecdanadesaHTML} </li>
<li>KOPERASI - ${keckoperasiHTML} </li>
`
layer.bindPopup(popupContent).openPopup(e.latlng);
layer.bindPopup(popupContent, {className:'custom-popup'}).openPopup(e.latlng);
}else {
// Desa
const province_code = localStorage.getItem('kode_provinsi')
@@ -451,14 +454,14 @@
<li>KOPERASI - ${koperasiHTML} </li>
`;
layer.bindPopup(popupContent).openPopup(e.latlng);
layer.bindPopup(popupContent,{className:'custom-popup'}).openPopup(e.latlng);
}
}, 250);
layer.bindPopup(feature.properties.nama);
layer.bindPopup(feature.properties.nama, {className:'custom-popup'});
}
console.log(currentLevel)
});
layer.bindPopup(feature.properties.nama);
layer.bindPopup(feature.properties.nama, {className: 'custom-popup'});
}
}).addTo(map);