Browse Source

Implementing rule to not render data filtering modal in map form screen

master
GabrielTrettel 3 years ago
parent
commit
2f47b7e0a3
  1. 4
      src/app/components/map/OpenStreetMap.js
  2. 1
      src/app/screens/MapFormScreen.js

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

@ -40,6 +40,7 @@ export default function OpenStreetMap({
markersList,
clickListener,
moveEndListener,
isForm=false
}) {
const [mapRef, setMapRef] = useState(null);
const webviewContent = html_content;
@ -82,6 +83,7 @@ export default function OpenStreetMap({
injectedJavaScript={viewFunction}
/>
)}
{!isForm && (
<View>
<MapModal
showModal={markerListener}
@ -89,7 +91,7 @@ export default function OpenStreetMap({
markers={markersList}
/>
<MapDataMenu/>
</View>
</View>)}
</View>
);
}

1
src/app/screens/MapFormScreen.js

@ -51,6 +51,7 @@ const MapFormScreen = (props) => {
<OpenStreetMap
moveEndListener={(e) => moveLocation(e)}
centerUserLocation={true}
isForm={true}
/>
<View style={styles.markerFixed}>
<Image

Loading…
Cancel
Save