hexbinLayer = {
return {
id: "hexbins",
type: "circle",
source: "hexbins",
paint: {
"circle-radius": {
"stops": [[0,0], [11, metersToPixelsAtMaxZoom(2, center[1])]],
base: 2
},
"circle-stroke-color": "blue",
"circle-stroke-width": ["get", "stroke"],
"circle-color": ["get", "pm1color"],
"circle-opacity": ["get", "pm1opacity"]
}
}
}