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 working in in android but working in ios. #1568

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>
ansarikhurshid786 commented 5 years ago

I got solution added in source : size={256} Ref.: https://github.com/nitaliano/react-native-mapbox-gl/issues/1024