{
const autoHighlight = true
const box_layer = new deck.GeoJsonLayer({
id: 'box_layer',
data : boxes,
getFillColor: d=> {
var inst_color
var rgb = d3.color(box_colors[d.properties.col_group])
inst_color = [rgb.r,rgb.g,rgb.b,255]
return inst_color
},
filled: true,
stroked: false,
pickable: true,
wireframe: false,
})
const scatterLayer = new deck.ScatterplotLayer({
data: points,
getPosition: d => [parseFloat(d.center_x), parseFloat(d.center_y)],
getFillColor: d => [0,0,255,100],
getRadius: radius,
pickable: true,
autoHighlight: true,
highlightColor: d => [50, 50, 50],
radiusMinPixels: radius_min_pixels,
})
const alpha_layer = new deck.GeoJsonLayer({
id: 'alpha_layer',
data: minimap_plot,
filled: false,
stroked: true,
lineWidthScale: 10,
lineWidthMinPixels: 2,
wireframe: false,
})
deckgl.setProps({layers: [alpha_layer, box_layer]});
}