@pansy/lark-map
v1.12.1
Published
A React toolkit for geospatial visualization based on L7
Downloads
49
Maintainers
Readme
📦 安装
# npm
$ npm install @antv/l7 @pansy/lark-map
# yarn
$ yarn add @antv/l7 @pansy/lark-map
# pnpm
$ pnpm i @antv/l7 @pansy/lark-map
🔨 使用
import { LarkMap } from '@pansy/lark-map';
const config = {
mapType: 'Mapbox',
mapOptions: {
style: 'light',
center: [120.210792, 30.246026],
zoom: 8,
...
},
};
export default () => {
return <LarkMap {...config} style={{ height: '300px' }}></LarkMap>;
};