layer = {
const layer = new deck.GeoJsonLayer({
id: `geojson-${Date.now()}`,
data: sfBuildings,
extruded: true,
getFillColor: f => colorScale(f.properties.gen_hght * 1),
getElevation: f => f.properties.gen_hght < 2000 ? f.properties.gen_hght * 1 : 0,
pickable: true,
onClick: evt => info.innerHTML = evt.object.properties.gen_hght
});
deckgl.setProps({layers: [layer]});
return layer;
}