You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @benrudolph Sorry for the late reply, there is an open issue for that #464 I was waiting to get some types from definitelyTyped to be merged but it seems quite critical so I might go ahead with a temporary hack around the types. In the meantime you can directly upload your images in mapbox studio if you are using it, they will be downloaded with your style
This library throws an error if you try to change the style of the react map that contains a layer with loaded images
For example:
Then when you change
this.props.style
, theLayer
throws an error because it tries to add the same images.I believe the fix is to add a check for
hasImage
here: https://github.com/alex3165/react-mapbox-gl/blob/master/src/layer.ts#L181The text was updated successfully, but these errors were encountered: