plot = {
const t0 = performance.now();
const projection = d3.geoAzimuthalEqualArea()
.rotate([110, -43, 0])
.scale(800);
const svg = d3.select(DOM.svg(1080, 600))
.style("width", "100%")
.style("height", "auto");
const barbsGroup = svg.append("g").attr("class", "wind-barbs");
const geojsonUrl = "https://geojson-ldxdcwirxw.now.sh/metar-api-sample-json-10945.json";
d3.metar.stations(geojsonUrl).then(stations => {
stations.forEach(s => {
if(s.properties.wspd > 26){
s.properties.wspd = 65;
}
});
d3.metar.barbs(stations, barbsGroup, projection, priority);
const t1 = performance.now();
console.log("Call to svg took " + (t1 - t0) + " milliseconds.");
});
return svg.node();
}