Map Marker (Custom Image) Not Rendering


#1

I have a mapview component which I’m rendering a number of markers in. Prior to an SDK update (25 -> 27), the markers were rendering perfectly with custom images. After the update, the markers are rendering but the custom images are not loading so the map appears blank. Any thoughts on why the image would all of a sudden stop working? I can see the source via react devtools, and it is as expected, the images simply don’t show up.

{this.props.fullStandList.map((marker, i) => {
	if(marker.location) {
		const coords = {
			latitude: marker.location.coordinates[1],
			longitude: marker.location.coordinates[0],
		};

		return (
			<Marker
				coordinate={coords}
				identifier={marker._id}
				key={`marker--${i}`}
				standData={marker}
				onPress={this.handleStandPress}
				tracksViewChanges={false}
				image={require('../../img/icon_location.png')}
			/>
		);
	}
})}

#2

ios or android?


#3

IOS, sorry!


closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.