@@ -2,12 +2,12 @@ import { LarkMap } from '@antv/larkmap';
2
2
import React , { useMemo , type FC } from 'react' ;
3
3
import type { BaseMapProps } from '../types' ;
4
4
import { formatMapStyle } from '../utils/map' ;
5
- import { MapView , Marker , Polyline } from './Component/ ' ;
5
+ import { MapView , Marker , Polyline } from './Component' ;
6
6
7
7
export type MapProps = Omit < BaseMapProps < any > , 'data' > ;
8
8
9
9
const Map : FC < MapProps > = ( props ) => {
10
- const { className, containerStyle, children } = props ;
10
+ const { className, containerStyle, style , children } = props ;
11
11
const mapConfig = useMemo ( ( ) => formatMapStyle ( props ) , [ props ] ) ;
12
12
const onSceneLoaded = async ( ) => {
13
13
if ( props . onInitComplete ) {
@@ -18,7 +18,7 @@ const Map: FC<MapProps> = (props) => {
18
18
return (
19
19
< LarkMap
20
20
className = { className }
21
- style = { { height : 300 , ...containerStyle } }
21
+ style = { { height : 300 , ...containerStyle , ... style } }
22
22
{ ...mapConfig }
23
23
onSceneLoaded = { onSceneLoaded }
24
24
>
0 commit comments