Skip to content

Commit d4bd83c

Browse files
authored
fix: more clickable and visible lines (#332)
1 parent 860430c commit d4bd83c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/map.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default function Map() {
8383
256 - lineColor[0],
8484
256 - lineColor[1],
8585
256 - lineColor[2],
86-
fillColor[3],
86+
200,
8787
] as Color;
8888
const transparent = [0, 0, 0, 0] as Color;
8989

@@ -103,7 +103,7 @@ export default function Map() {
103103
filled: !cogHref,
104104
getFillColor: inverseFillColor,
105105
getLineColor: inverseLineColor,
106-
getLineWidth: 2 * lineWidth,
106+
getLineWidth: lineWidth * 2,
107107
lineWidthUnits: "pixels",
108108
}),
109109
new GeoJsonLayer({
@@ -179,7 +179,7 @@ export default function Map() {
179179
id: "stac-geoparquet-linestring",
180180
data: stacGeoparquetTable.table,
181181
getColor: lineColor,
182-
getWidth: lineWidth,
182+
getWidth: lineWidth * 2,
183183
widthUnits: "pixels",
184184
pickable: true,
185185
onClick: (info) => {

0 commit comments

Comments
 (0)