nitaliano / react-native-mapbox-gl

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

Raster layer not rendering in android #1534

Closed ansarikhurshid786 closed 5 years ago

ansarikhurshid786 commented 5 years ago

I have added one rastersource and rasterlayer. It is working in ios emulator and device but not working in android device or emulator.

can anyone help me?

sample code :

<MapboxGL.RasterSource
   id="idCities"
   url="url/export?layers=show:197,198,220&bbox={bbox-epsg-3857}&bboxSR=3857&imageSR=3857&size=256,256&transparent=true&format=png&f=image">
      <MapboxGL.RasterLayer
         id="idCities"
         source="idCities"
         style={{ visibility: "visible" }}>
      </MapboxGL.RasterLayer>
   </MapboxGL.RasterSource>
onitzschke commented 5 years ago

Did you already tried to restart the app completely?

kristfal commented 5 years ago

Without any code samples or other ways to reproduce, we can’t help. Please reopen with a link to an example repo.

ansarikhurshid786 commented 5 years ago

@kristfal can you check question again ?

ansarikhurshid786 commented 5 years ago

I have tested in ios simulator and real device, working great but not working neither in simulator nor in real device.