Skip to content

Commit 506991b

Browse files
committed
fix: add visible to vector layer
1 parent 8248c35 commit 506991b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/layers/vector-layer.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const VectorLayer: FunctionComponent<Props> = ({
1515
style,
1616
zIndex = 0,
1717
name,
18+
visible,
1819
onLayerChangeVisible,
1920
onPostRender,
2021
}) => {
@@ -26,6 +27,7 @@ const VectorLayer: FunctionComponent<Props> = ({
2627
const vectorLayer = new OLVectorLayer({
2728
source,
2829
style,
30+
visible,
2931
});
3032
vectorLayer.setProperties({ name });
3133

0 commit comments

Comments
 (0)