Skip to content
Snippets Groups Projects
Commit 3bf0021a authored by Anael Lacour's avatar Anael Lacour
Browse files

fix work

parent 21fc6440
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,8 @@ import { TouchableOpacity, Button, View, Text } from "react-native";
export const InfoWindow = (props) => {
const { place, navigation } = props;
console.log(route.param.name)
//
// console.log(route.param.name)
const goTo = () => navigation.navigate("vuDetails",{name : place});
const infoWindowStyle = {
position: 'relative',
......
......@@ -8,7 +8,7 @@ const Stack = createNativeStackNavigator()
export default function MapHome ({ navigation }) {
return(
<Stack.Navigator
initialRouteName='vuDetails'
initialRouteName='stackMap'
screenOptions={{ headerShown: false }}>
<Stack.Screen name='stackMap'>
{props => <CustomMap {...props} />}
......
......@@ -4,8 +4,10 @@ import { InfoWindow } from "../../../components/map/infoWindow";
// Marker component
const Marker = () => {
const markerStyle = {
const Marker = (props) => {
const { place } = props
const show=place.show
const markerStyle = {
border: '1px solid white',
borderRadius: '50%',
height: 10,
......@@ -14,8 +16,7 @@ const Marker = () => {
cursor: 'pointer',
zIndex: 10,
};
const { place } = props
return (
<>
<div style={markerStyle} />
......@@ -23,7 +24,7 @@ const Marker = () => {
</>
);
};
const MY_API_KEY = process.env.API_KEY
export default function WebMapView (props){
......@@ -49,4 +50,4 @@ export default function WebMapView (props){
</GoogleMapReact>
)
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment