Plot.plot({
projection: {
type: form.projection,
rotate: [-form.lon, -form.lat],
domain: d3.geoCircle().center([form.lon, form.lat]).radius(form.scale)()
},
width,
color: {
scheme: "reds"
},
marks: [
Plot.geo(world110m, {fill: "#eee", stroke: "#bbb"}),
Plot.graticule(),
Plot.sphere( {stroke: "#ddd"} ),
showDensity ? Plot.density(earthdata, {
x: "longitude",
y: "latitude",
bandwidth: 12,
fill: "density"
}): null,
Plot.dot(filteredData, {
x: "longitude",
y: "latitude",
r: d=>radiusScale(d.magnitude),
fill:"yellow",
stroke: "black"
}),
Plot.geo(world110m,{ strokeOpacity: 0.5 }),
]
})