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

1
src/app/screens/MapFormScreen.js

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

Loading…
Cancel
Save