自定义事件,以检查React Native Mapbox gl Maps中是否缺少样式图像 [英] custom event to check if the style image is missing in react native mapbox gl maps
问题描述
我正在广泛使用 react-native-mapbox-gl/maps 在我的本机应用程序中,我想向图表样式添加动态样式图标.
javascript mapbox库有一个很好的事件,称为 styleimagemissing ,我们可以检查缺少哪种样式的图像并进行构建.
react-native mapbox gl库中是否存在类似内容?
换句话说,我希望实现以下目标:解决方案
这是在react native mapbox gl 8.0及更高版本中实现的.参见 Images#onImageMissing >
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.
This is implemented in react native mapbox gl 8.0 and later. See Images#onImageMissing
这篇关于自定义事件,以检查React Native Mapbox gl Maps中是否缺少样式图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!