mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
fix: deck.gl Geojson path not visible (#24428)
This commit is contained in:
parent
23bb1c48a1
commit
6bb930ef4e
@ -123,14 +123,15 @@ export function getLayer(formData, payload, onAddFilter, setTooltip) {
|
|||||||
|
|
||||||
return new GeoJsonLayer({
|
return new GeoJsonLayer({
|
||||||
id: `geojson-layer-${fd.slice_id}`,
|
id: `geojson-layer-${fd.slice_id}`,
|
||||||
filled: fd.filled,
|
|
||||||
data: features,
|
data: features,
|
||||||
stroked: fd.stroked,
|
|
||||||
extruded: fd.extruded,
|
extruded: fd.extruded,
|
||||||
pointRadiusScale: fd.point_radius_scale,
|
filled: fd.filled,
|
||||||
|
stroked: fd.stroked,
|
||||||
getFillColor,
|
getFillColor,
|
||||||
getLineWidth: fd.line_width || 1,
|
|
||||||
getLineColor,
|
getLineColor,
|
||||||
|
getLineWidth: fd.line_width || 1,
|
||||||
|
pointRadiusScale: fd.point_radius_scale,
|
||||||
|
lineWidthUnits: fd.line_width_unit,
|
||||||
...commonLayerProps(fd, setTooltip, setTooltipContent),
|
...commonLayerProps(fd, setTooltip, setTooltipContent),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -69,8 +69,23 @@ const config: ControlPanelConfig = {
|
|||||||
controlSetRows: [
|
controlSetRows: [
|
||||||
[fillColorPicker, strokeColorPicker],
|
[fillColorPicker, strokeColorPicker],
|
||||||
[filled, stroked],
|
[filled, stroked],
|
||||||
[extruded, null],
|
[extruded],
|
||||||
[lineWidth, null],
|
[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',
|
name: 'point_radius_scale',
|
||||||
@ -83,7 +98,6 @@ const config: ControlPanelConfig = {
|
|||||||
choices: formatSelectOptions([0, 100, 200, 300, 500]),
|
choices: formatSelectOptions([0, 100, 200, 300, 500]),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
null,
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user