map = {
const container = htl.html`<div style="height: 500px;"></div>`;
const map = L.map(container).setView([4.570, -74.2973], 5);
L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
const geojsonObject = cartilla_lugares_de_memoria_mnm;
const geojsonLayer = L.geoJSON(geojsonObject).addTo(map);
geojsonLayer.setStyle({
color: 'red',
fillColor: 'orange',
weight: 2,
opacity: 1,
fillOpacity: 0.6
});
map.fitBounds(geojsonLayer.getBounds());
setTimeout(() => {
map.setZoom(5);
}, 1000);
return container;
}