Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <View style={{ flex: 1 }}>
- <MapView
- provider={PROVIDER_GOOGLE}
- style={{ flex: 1 }}
- region={{
- latitude: 41.20060,
- longitude: 47.18932,
- latitudeDelta: 0.0922,
- longitudeDelta: 0.0421
- }}
- >
- {
- heritages.filter(h => h.x !== '' && h.y !== '').map(h =>
- <MapView.Marker
- coordinate={{
- latitude: parseFloat(h.x),
- longitude: parseFloat(h.y)
- }}
- title={h.title}
- >
- </MapView.Marker>
- )
- }
- </MapView>
- </View>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement