map = {
const container = html`<div style="height:600px;">`;
yield container;
const map = L.map(container).setView([42.7799, -75.7923], 6.5);
L.tileLayer(
"https://a.basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}@2x.png"
).addTo(map);
const statesLayer = L.geoJson(ny, {
style: function(feature) {
return {
color: "black",
weight: .1,
fillColor: nyfill[feature.properties.ZCTA5CE10],
fillOpacity: .7
};
}
}).addTo(map);
statesLayer.bindPopup(layer => {
return layer.feature.properties.ZCTA5CE10;
});
}