macrostratMap = {
let container = DOM.element('div', { style: `width:${width}px;height:${width/1.6}px` });
yield container;
let map = L.map(container);
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, {
style: () => {
return {
weight: 1,
color: '#432'
}
},
onEachFeature: (feature, layer) => {
layer.bindPopup(`
<h4>${feature.properties.col_name}</h4>
<p>${feature.properties.col_area} km2</p>
`)
}
}).addTo(map);
map.fitBounds(macrostratColumnLayer.getBounds());
}