K
K
karakov2019-04-10 17:14:18
iOS
karakov, 2019-04-10 17:14:18

Why isn't the Polygon drawn on the map in iOS?

Good afternoon.
in React-native I use the expo library to draw a map and polygons on it.
I draw a list of polygons using the map function on Android, the list of polygons is displayed correctly, on iOS they are not drawn.
If you display polygons one at a time, then they are displayed

<MapView
                            style={styles.map}
                            initialRegion={this.state.mapRegion}
                            onRegionChange={this._handleMapRegionChange}
                        >
                            <View>
                                {this.state.polygons.map((polygon, index) => (
                                        <MapPolygon
                                            key={index}
                                            coordinates={polygon}
                                            fillColor='rgba(0, 255, 0, 0.4)'
                                            strokeColor='black'
                                        />
                                    )
                                )}
                            </View>
                            <Marker
                                description={'Ваш'}
                                coordinate={this.state.mapRegion}
                            />
                        </MapView>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question