Skip to content

Commit

Permalink
Merge pull request #42 from uphadeharsh45/production
Browse files Browse the repository at this point in the history
changed image to icon for markers
  • Loading branch information
uphadeharsh45 authored Dec 12, 2024
2 parents c014222 + 540c547 commit 8d32644
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
11 changes: 9 additions & 2 deletions RouteMaster/Screens/Map1.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,17 @@ const optimizedRouteCoordinates = data[0]
onPress={handleMapPress}
>
{marker && (
// <Marker
// image={greenmarker4}
// draggable
// coordinate={marker}
// onDragEnd={(e) => setMarker(e.nativeEvent.coordinate)}
// />
<Marker
image={greenmarker4}
draggable
coordinate={marker}
onDragEnd={(e) => setMarker(e.nativeEvent.coordinate)}
icon={greenmarker4}
/>
)}

Expand All @@ -835,7 +841,8 @@ const optimizedRouteCoordinates = data[0]

{ markers.map((location, index) => (
<Marker
image={greenmarker4}
icon={greenmarker4}
// image={greenmarker4}
key={`marker-${index}-${location.latitude}-${location.longitude}`}
coordinate={{
latitude: location.latitude,
Expand Down
4 changes: 2 additions & 2 deletions RouteMaster/Screens/Map2.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ const handleSMS = async () => {
>
{marker && (
<Marker
image={greenmarker4}
icon={greenmarker4}
draggable
coordinate={marker}
onDragEnd={(e) => setMarker(e.nativeEvent.coordinate)}
Expand All @@ -837,7 +837,7 @@ const handleSMS = async () => {

{ markers.map((location, index) => (
<Marker
image={greenmarker4}
icon={greenmarker4}
key={`marker-${index}-${location.latitude}-${location.longitude}`}
coordinate={{
latitude: location.latitude,
Expand Down
4 changes: 2 additions & 2 deletions RouteMaster/Screens/ShowOnMapDeadLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ const [contactModalVisible, setContactModalVisible] = useState(false);
>
{marker && (
<Marker
image={greenmarker4}
icon={greenmarker4}
draggable
coordinate={marker}
onDragEnd={(e) => setMarker(e.nativeEvent.coordinate)}
Expand All @@ -828,7 +828,7 @@ const [contactModalVisible, setContactModalVisible] = useState(false);

{ markers.map((location, index) => (
<Marker
image={greenmarker4}
icon={greenmarker4}
key={`marker-${index}-${location.latitude}-${location.longitude}`}
coordinate={{
latitude: location.latitude,
Expand Down
4 changes: 2 additions & 2 deletions RouteMaster/Screens/ShowOnMapTW.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ import * as Contacts from 'expo-contacts';
>
{marker && (
<Marker
image={greenmarker4}
icon={greenmarker4}
draggable
coordinate={marker}
onDragEnd={(e) => setMarker(e.nativeEvent.coordinate)}
Expand All @@ -829,7 +829,7 @@ import * as Contacts from 'expo-contacts';

{ markers.map((location, index) => (
<Marker
image={greenmarker4}
icon={greenmarker4}
key={`marker-${index}-${location.latitude}-${location.longitude}`}
coordinate={{
latitude: location.latitude,
Expand Down

0 comments on commit 8d32644

Please sign in to comment.