grandCentralMap = {
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 grandCentralLayer = L.geoJson(grandCentral, {
weight: 5,
color: "#432"
}).addTo(map);
map.fitBounds(grandCentralLayer.getBounds());
L.control.scale({ maxWidth: 500 }).addTo(map);
}