问题
I am using react-native-mapbox-gl/maps extensively in my react native app and I wanted to add dynamic style icons to the chart style.
The javascript mapbox library has a nice event called styleimagemissing with which we can check which image for a style is missing and construct it.
Is there something similar in the react-native mapbox gl library?
In other words, I would line to achieve something like this using the react native mapbox-gl library.
回答1:
This is implemented in react native mapbox gl 8.0 and later. See Images#onImageMissing
来源:https://stackoverflow.com/questions/57572798/custom-event-to-check-if-the-style-image-is-missing-in-react-native-mapbox-gl-ma