AnsweredAssumed Answered

RasterLayer in android sdk

Question asked by kgmaven on Jul 22, 2015
Latest reply on Jul 25, 2015 by kgmaven

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:

mMapView.setExtent(rasterLayer.getExtent());

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.

Outcomes