Select to view content in your preferred language

Operationlayer vs basemap

498
2
03-11-2022 01:28 AM
TayLee
by
Emerging Contributor

I have some TPKX files that I am trying to load them onto Android app

But it seems like for some TPKX, it doesn't display if I simply add them to the an existing map as an operational layer (no error logged or thrown): 

ie: map.getOperationalLayers().add(layer)

It would only display if I re-create a new Basemap and set it the the mapView.

ie.:

Basemap bm = new Basemap(layerFromTpkx);

mapView.setMap(new ArcGISMap(bm));

I am guessing if it have anything to do with different spatial references? 

Any advice is appreciated, thanks in advance!

0 Kudos
2 Replies
RamaChintapalli
Esri Contributor

Hi,

ArcGISTiledLayers cannot be reprojected on the fly. See functional characteristics in documentation here,

https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/layers/ArcGISTi...

Thanks
Rama

0 Kudos
TayLee
by
Emerging Contributor

Hi thanks for the reply and so it seems to be spatial reference.

For SceneView, it seems that my ArcGISTiledLayer would not display even if I had created a new Basemap with the tiled layer.

The same data could display in 2D however.  Any advise on this?

 

0 Kudos