viewof macrostratMap = {
let container = DOM.element('div', { style: `width:${width/1.7}px;height:${width/2.5}px` });
yield container;
let map = L.map(container).setView([38.896, -77.0459], 11);
let osmLayer = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}@2x.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
let macrostratColumnLayer = L.geoJson(macrostratColumns, {
weight: 1,
color: '#432',
onEachFeature: onEachFeature
}).bindPopup(function (Layer) {
return Layer.feature.properties.col_id;
}).addTo(map);
map.on('click', () =>
mutable nHood = null
);
map.fitBounds(macrostratColumnLayer.getBounds());
}