テキスト追加
This commit is contained in:
parent
1d4cb35aa5
commit
c8973c36fa
@ -35,7 +35,7 @@ export default function TrainMenu({ stationData, style }) {
|
|||||||
latitude: parseFloat(latlng[0]),
|
latitude: parseFloat(latlng[0]),
|
||||||
longitude: parseFloat(latlng[1]),
|
longitude: parseFloat(latlng[1]),
|
||||||
})),
|
})),
|
||||||
{ edgePadding: { top: 50, bottom: 50, left: 50, right: 50 } } // Add margin values here
|
{ edgePadding: { top: 100, bottom: 50, left: 50, right: 50 } } // Add margin values here
|
||||||
);
|
);
|
||||||
}, [stationPin]);
|
}, [stationPin]);
|
||||||
return (
|
return (
|
||||||
@ -95,7 +95,19 @@ export default function TrainMenu({ stationData, style }) {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</MapView>
|
</MapView>
|
||||||
<View style={{ flexDirection: "row" }}>
|
<View style={{ position: "relative" }}>
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
flexDirection: "row",
|
||||||
|
position: "absolute",
|
||||||
|
width: "100vw",
|
||||||
|
bottom: 0,
|
||||||
|
flex: 1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text style={{ position: "absolute", bottom: 40 }}>
|
||||||
|
路線記号からフィルタリング
|
||||||
|
</Text>
|
||||||
{Object.keys(stationData).map((d) => (
|
{Object.keys(stationData).map((d) => (
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={{
|
style={{
|
||||||
@ -103,18 +115,21 @@ export default function TrainMenu({ stationData, style }) {
|
|||||||
backgroundColor: lineColorList[stationIDPair[d]],
|
backgroundColor: lineColorList[stationIDPair[d]],
|
||||||
padding: 5,
|
padding: 5,
|
||||||
margin: 2,
|
margin: 2,
|
||||||
borderRadius: 5,
|
borderRadius: 10,
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
opacity: selectedLine == d ? 1 : !selectedLine ? 1 : 0.5,
|
opacity: selectedLine == d ? 1 : !selectedLine ? 1 : 0.5,
|
||||||
}}
|
}}
|
||||||
onPress={() => setSelectedLine(selectedLine == d ? undefined : d)}
|
onPress={() => setSelectedLine(selectedLine == d ? undefined : d)}
|
||||||
>
|
>
|
||||||
<Text style={{ color: "white", fontWeight: "bold", fontSize: 20 }}>
|
<Text
|
||||||
|
style={{ color: "white", fontWeight: "bold", fontSize: 20 }}
|
||||||
|
>
|
||||||
{stationIDPair[d]}
|
{stationIDPair[d]}
|
||||||
</Text>
|
</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
))}
|
))}
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
{navigate && (
|
{navigate && (
|
||||||
<View style={{ flexDirection: "row" }}>
|
<View style={{ flexDirection: "row" }}>
|
||||||
<UsefulBox
|
<UsefulBox
|
||||||
|
Loading…
Reference in New Issue
Block a user