I am trying add raster layer like tiff to the map, and I use the following code:
FileRasterSource rasterSource = new FileRasterSource(file); final RasterLayer rasterLayer = new RasterLayer(rasterSource); mMapView.addLayer(rasterLayer);
It works, however once I want to set the layer to fill the veiewport of the map:
It does not work.
And what's more, I found that the map can not be zoom out at a certain scale. I am not sure why.