Browse Source

Fixing bug in IOS

master
Trettel 3 years ago
parent
commit
29b9cd4d0a
  1. 6
      src/app/components/map/OpenStreetMap.js

6
src/app/components/map/OpenStreetMap.js

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