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