ppup sizeing
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user