refactor HedgeLayer component to move paint options into options prop
This commit is contained in:
@@ -19,16 +19,16 @@ export default function HedgeLayer() {
|
||||
geojson={geojson}
|
||||
type="line"
|
||||
insertBeforeLayer="waterway-name"
|
||||
paint={{
|
||||
"line-color": "#4caf50",
|
||||
"line-width": 6,
|
||||
"line-opacity": 0.9,
|
||||
}}
|
||||
options={{
|
||||
layout: {
|
||||
"line-cap": "round",
|
||||
"line-join": "round",
|
||||
},
|
||||
paint: {
|
||||
"line-color": "#4caf50",
|
||||
"line-width": 6,
|
||||
"line-opacity": 0.9,
|
||||
},
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user