Skip to content

Commit

Permalink
feat: 调试layerswitch
Browse files Browse the repository at this point in the history
  • Loading branch information
谨欣 committed Dec 29, 2023
1 parent 72f07ab commit 9d71a71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default () => {
<LarkMap mapType="Gaode" style={{ height: '400px' }}>
<PolygonLayer id="fillLayer" name="填充图层" {...polygonLayerOptions} source={source} />
<PolygonLayer id="strokeLayer" name="描边图层" {...lineLayerOptions} source={source} />
<LayerSwitchControl layers={['fillLayer', 'strokeLayer']} />
<LayerSwitchControl layers={['fillLayer', 'strokeLayer']} multiple={false} />
</LarkMap>
);
};

0 comments on commit 9d71a71

Please sign in to comment.