|
@ -47,7 +47,7 @@ export default function OpenStreetMap({ |
|
|
const viewFunction = `\
|
|
|
const viewFunction = `\
|
|
|
setCustomView(${global.location.lat}, ${global.location.long}, 16.5);`;
|
|
|
setCustomView(${global.location.lat}, ${global.location.long}, 16.5);`;
|
|
|
|
|
|
|
|
|
console.log(global.location) |
|
|
|
|
|
|
|
|
console.log(global.location); |
|
|
markersList && |
|
|
markersList && |
|
|
mapRef && |
|
|
mapRef && |
|
|
notEmpy(markersList) && |
|
|
notEmpy(markersList) && |
|
@ -61,6 +61,7 @@ export default function OpenStreetMap({ |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<View flex={1}> |
|
|
<View flex={1}> |
|
|
|
|
|
{webviewContent && ( |
|
|
<WebView |
|
|
<WebView |
|
|
ref={(webViewRef) => { |
|
|
ref={(webViewRef) => { |
|
|
setMapRef(webViewRef); |
|
|
setMapRef(webViewRef); |
|
@ -77,6 +78,7 @@ export default function OpenStreetMap({ |
|
|
source={{ html: webviewContent }} |
|
|
source={{ html: webviewContent }} |
|
|
injectedJavaScript={viewFunction} |
|
|
injectedJavaScript={viewFunction} |
|
|
/> |
|
|
/> |
|
|
|
|
|
)} |
|
|
<View> |
|
|
<View> |
|
|
<MapModal |
|
|
<MapModal |
|
|
markerToRender={markerListener} |
|
|
markerToRender={markerListener} |
|
@ -87,5 +89,3 @@ export default function OpenStreetMap({ |
|
|
</View> |
|
|
</View> |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|