2 Commits ec4d27a1fa ... 02c1d89070

Autore SHA1 Messaggio Data
  Eric Li 02c1d89070 Merge branch 'global-alerts' of ericCNP:apps/atlas-mobile-ts into global-alerts 2 anni fa
  Eric Li 483f431960 added route and new icon 2 anni fa

BIN
assets/accessibleEntrance.png


+ 54 - 4
src/components/Map/MainMapComponent/OutdoorMap.tsx

@@ -338,15 +338,65 @@ const OutdoorMap: React.FC<OutdoorMapProps> = (props) => {
                     }
                     }
                     )}
                     )}
 
 
-
+                    <Polyline
+                        coordinates={[
+                            {
+                                latitude: 53.527192,
+                                longitude: -113.523583, //Cameron
+                            },
+                            {
+                                latitude: 53.527189,
+                                longitude: -113.5233285,
+                            },
+                            {
+                                latitude: 53.526942,
+                                longitude: -113.523338,
+                            },
+                            {
+                                latitude: 53.526934,
+                                longitude: -113.523263,
+                            },
+                            {
+                                latitude: 53.5264874,
+                                longitude: -113.5232654,
+                            },
+                            {
+                                latitude: 53.526492,
+                                longitude: -113.522827,
+                            },
+                            {
+                                latitude: 53.52620959999999,
+                                longitude: -113.5228282,
+                            },
+                            {
+                                latitude: 53.5259882,
+                                longitude: -113.5222835,
+                            },
+                            {
+                                latitude: 53.5254566,
+                                longitude: -113.5222824,
+                            },
+                            {
+                                latitude: 53.525456,
+                                longitude: -113.522155,
+                            },
+                            {
+                                latitude: 53.5251288,
+                                longitude: -113.5216083, // University station
+                            },
+                        ]}
+                        strokeColor="black"
+                        strokeWidth={3}
+                    />
                     {/* <MapViewDirections
                     {/* <MapViewDirections
                         origin={coordinates[0]}
                         origin={coordinates[0]}
                         destination={coordinates[1]}
                         destination={coordinates[1]}
-                        apikey={"AIzaSyBpckHhiuieLglacinLqewC_HfWkLehwWI"} // insert your API Key here
+                        apikey={"xxxxxxxxxxxxxxx"} // insert your API Key here
                         strokeWidth={4}
                         strokeWidth={4}
                         strokeColor="#111111"
                         strokeColor="#111111"
-                    />
-                    <Marker coordinate={coordinates[1]} pinColor={colors.red} /> */}
+                        mode="WALKING"
+                    /> */}
+                    <Marker coordinate={coordinates[1]} pinColor={colors.red} />
 
 
 
 
 
 

+ 1 - 1
src/navigation/MapNavigator.tsx

@@ -215,6 +215,7 @@ const MapNavigator: React.FC = ({ }) => {
                 <View style={{ top: 60, right: 20, position: 'absolute', }}>
                 <View style={{ top: 60, right: 20, position: 'absolute', }}>
                     <Menu
                     <Menu
                         visible={visible}
                         visible={visible}
+                                                                                                        // either "bars" or "list"  
                         anchor={<IconButton size={20} color={colors.red} style={[mapStyles.filterButtonOutdoor]} icon="bars" onPress={() => setVisible(true)} />}
                         anchor={<IconButton size={20} color={colors.red} style={[mapStyles.filterButtonOutdoor]} icon="bars" onPress={() => setVisible(true)} />}
                         onRequestClose={() => setVisible(false)}
                         onRequestClose={() => setVisible(false)}
                     >
                     >
@@ -233,7 +234,6 @@ const MapNavigator: React.FC = ({ }) => {
 
 
                     </Menu>
                     </Menu>
 
 
-                    {/* either "bars" or "list"  */}
                 </View>
                 </View>
             }
             }