Added fields to Marker info display
This commit is contained in:
@@ -42,12 +42,15 @@ const region = {
|
||||
style={styles.map}
|
||||
region={region}
|
||||
>
|
||||
{chantiers.map(chantier => (
|
||||
<Marker
|
||||
key={chantier.id}
|
||||
coordinate={{ latitude: chantier.latitude, longitude: chantier.longitude }}
|
||||
/>
|
||||
))}
|
||||
{Array.isArray(chantiers) &&
|
||||
chantiers.map(chantier => (
|
||||
<Marker
|
||||
key = {chantier.id}
|
||||
coordinate={{ latitude: chantier.latitude, longitude: chantier.longitude }}
|
||||
title={chantier.adresse}
|
||||
description={chantier.etat}
|
||||
/>
|
||||
))}
|
||||
</ThemedMapView>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user