Skip to content

Commit

Permalink
fix: deck.gl Geojson path not visible (apache#24428)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje authored Jun 16, 2023
1 parent 23bb1c4 commit 6bb930e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,15 @@ export function getLayer(formData, payload, onAddFilter, setTooltip) {

return new GeoJsonLayer({
id: `geojson-layer-${fd.slice_id}`,
filled: fd.filled,
data: features,
stroked: fd.stroked,
extruded: fd.extruded,
pointRadiusScale: fd.point_radius_scale,
filled: fd.filled,
stroked: fd.stroked,
getFillColor,
getLineWidth: fd.line_width || 1,
getLineColor,
getLineWidth: fd.line_width || 1,
pointRadiusScale: fd.point_radius_scale,
lineWidthUnits: fd.line_width_unit,
...commonLayerProps(fd, setTooltip, setTooltipContent),
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,23 @@ const config: ControlPanelConfig = {
controlSetRows: [
[fillColorPicker, strokeColorPicker],
[filled, stroked],
[extruded, null],
[lineWidth, null],
[extruded],
[lineWidth],
[
{
name: 'line_width_unit',
config: {
type: 'SelectControl',
label: t('Line width unit'),
default: 'meters',
choices: [
['meters', t('meters')],
['pixels', t('pixels')],
],
renderTrigger: true,
},
},
],
[
{
name: 'point_radius_scale',
Expand All @@ -83,7 +98,6 @@ const config: ControlPanelConfig = {
choices: formatSelectOptions([0, 100, 200, 300, 500]),
},
},
null,
],
],
},
Expand Down

0 comments on commit 6bb930e

Please sign in to comment.