custom event to check if the style image is missing in react native mapbox gl maps

。_饼干妹妹 提交于 2020-05-29 08:24:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!