viewof map = {
let container = html`<div style='height:600px;' />`;
yield container;
let map = new maplibregl.Map({
container,
center: { lng: -1.2316579976425146, lat: 41.10902383137352 },
zoom: 5.25,
pitch: 60,
style: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
attributionControl: false
});
map.addControl(new maplibregl.NavigationControl());
map.addControl(
new maplibregl.AttributionControl({
compact: true,
customAttribution: "UAR RIATE, 2023"
})
);
map.on("load", async () => {
container.value = map;
container.dispatchEvent(new CustomEvent("input"));
});
}