Skip to content

Commit 2f195fe

Browse files
Merge branch 'main' into fix-own-position-and-styles
2 parents 102e96b + f92a48e commit 2f195fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LeafletView/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export type LeafletViewProps = {
5050
doDebug?: boolean;
5151
androidHardwareAccelerationDisabled?: boolean;
5252
webviewStyle?: WebViewProps;
53+
injectedJavaScript?: string;
5354
};
5455

5556
const LeafletView: React.FC<LeafletViewProps> = ({
@@ -67,6 +68,7 @@ const LeafletView: React.FC<LeafletViewProps> = ({
6768
doDebug,
6869
androidHardwareAccelerationDisabled,
6970
webviewStyle,
71+
injectedJavaScript
7072
}) => {
7173
const webViewRef = useRef<WebView>(null);
7274
const [initialized, setInitialized] = useState(false);
@@ -221,6 +223,7 @@ const LeafletView: React.FC<LeafletViewProps> = ({
221223
allowFileAccessFromFileURLs={true}
222224
androidHardwareAccelerationDisabled={androidHardwareAccelerationDisabled}
223225
style={webviewStyle}
226+
injectedJavaScript={injectedJavaScript}
224227
/>
225228
);
226229
};

0 commit comments

Comments
 (0)