File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import { BaseLayerProps } from "./base-layer-props";
6
6
7
7
interface VectorLayerProps {
8
8
onLayerChangeVisible ?: ( visible : boolean ) => void ;
9
- onPostRender ?: ( ) => void ;
9
+ onPostRender ?: ( evt : any ) => void ;
10
+ updateWhileAnimating ?: boolean ;
11
+ updateWhileInteracting ?: boolean ;
10
12
}
11
13
12
14
type Props = Options < any > & BaseLayerProps & VectorLayerProps ;
@@ -16,6 +18,8 @@ const VectorLayer: FunctionComponent<Props> = ({
16
18
zIndex = 0 ,
17
19
name,
18
20
visible,
21
+ updateWhileAnimating,
22
+ updateWhileInteracting,
19
23
onLayerChangeVisible,
20
24
onPostRender,
21
25
} ) => {
@@ -28,6 +32,8 @@ const VectorLayer: FunctionComponent<Props> = ({
28
32
source,
29
33
style,
30
34
visible,
35
+ updateWhileAnimating,
36
+ updateWhileInteracting,
31
37
} ) ;
32
38
vectorLayer . setProperties ( { name } ) ;
33
39
@@ -39,7 +45,7 @@ const VectorLayer: FunctionComponent<Props> = ({
39
45
}
40
46
41
47
if ( onPostRender ) {
42
- vectorLayer . on ( "postrender" , ( evt ) => onPostRender ( ) ) ;
48
+ vectorLayer . on ( "postrender" , ( evt ) => onPostRender ( evt ) ) ;
43
49
}
44
50
45
51
map . addLayer ( vectorLayer ) ;
You can’t perform that action at this time.
0 commit comments