viewof map = {
const target = html`<div style="height: 600px;">`;
yield target;
const map = target.value = new ol.Map({
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
})
],
target,
view: new ol.View({
center: ol.proj.fromLonLat([-77.41, 37.5]),
zoom: 10
})
});
invalidation.then(() => map.dispose());
return target;
}