Open seeya opened 6 years ago
With reference to this issue #1204, I managed to get it to work in a hacky way but updating the key
of MapboxGL.ShapeSource
once an update is done. Not the best fix, but at least it works for now.
@seeya can you share your working code ? with mine, even an update of the key
prop of ShapeSource
does not update my markers...
Hi, I am trying to load dynamically images of profile pictures for pins to be displayed on the map. The issue I am facing is when I update the state, the property
images
passed into the componentMapboxGL.ShapeSource
does not re-render the map to show the updated images. I can confirm that the loading of images is working as if I hardcode the values forimages={ id: {uri: imageLink}}
, it works. It seems like I can only preload all images at the start, and not whenever a state gets updated. Not sure if this is the current implementation of the library.My current implementation is something like this.