viewof map = { const container = html`<div style="height:400px;">`; yield container; // Give the container dimensions. const map = container.value = new mapboxgl.Map({ container, center: [0,0], zoom: 1, style: mapStyle(), scrollZoom: false });-var marker = new mapboxgl.Marker() .setLngLat([longitude, 0]) .addTo(map);invalidation.then(() => map.remove()); }