我想在 arcgis android sdk 中使用来自NSA GIBS的最新图像可能吗?我也可以从上述服务下载瓷砖到缓存/离线地图吗?
我已经尝试过:
来自 arcgis android 和
WebTiledLayer的WMSLayer类以下代码我用于 WebTiledLayer
mMapView = (MapView) findViewById(R.id.mapView);
String templateUri = "https://gibs.earthdata.nasa.gov/wmts/epsg3857/best/MODIS_Terra_Aerosol/default/2014-04-09/GoogleMapsCompatible_Level6/{level}/{row}/{col}.png";
// webtile layer
final WebTiledLayer webTiledLayer = new WebTiledLayer(templateUri);
webTiledLayer.loadAsync();
webTiledLayer.addDoneLoadingListener(new Runnable() {
@Override
public void run() {
if (webTiledLayer.getLoadStatus() == LoadStatus.LOADED) {
// use webtile layer as Basemap
final ArcGISMap map = new ArcGISMap(new Basemap(webTiledLayer));
mMapView.setMap(map);
// custom attributes
}else {
webTiledLayer.getLoadError().printStackTrace();
}
}
});
结果是一张空地图