nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

Using ShapeSource and FillLayer with a URL fillPattern image #1582

Open ksulia opened 5 years ago

ksulia commented 5 years ago

I am attempting to fill a geoJSON mask of New York State with an image. The code below works for using a local image.

`

` I would like to use this dynamically by using an image fetched from API. However, calling a "url" in "fillPattern" does not work the same way as the "require" on a local png or jpg shown above. ` ` I have also tried fillPattern: 'url: "https://some-uri.jpg"' as well. Any suggestions? Thanks!