{
const container = html`<div style = "width:1000px;height:500px"></div>`
yield container
const map = L.map(container).setView([40.7934,-77.8600],7)
const baseLayer = L.tileLayer(osMap,{attribution:osmAttr}).addTo(map)
L.geoJSON(result,{
pointToLayer: (feature,latlng) => {
return L.circle(latlng,{
radius: feature.properties.income/5,
weight: 1,
opacity: 1,
fillOpacity: .6,
color: "black",
fillColor: "blue"
})
}
}).bindPopup(
(Layer) => {
const city = Layer.feature.properties.city
const income = Layer.feature.properties.income
const display = html`
<p>city: ${city}</p>
<p>median income: ${income}</p>
`
return display
}
).addTo(map)
}