When i take tile layer as a basemap, and try to retrieve it's spatial reference , it gives me Null Pointer Exception , whereas if i take raster file (tif) as base layer, I am able to get it's spatial reference same as that of map. There is a lot of confusion regarding the projection system of tile layer. How can i change the projection , so that i can see it in my MapView , coz on changing the Projection of map , the tile layer disappears. Thanks in advance
Did you call "await tileLayer.LoadAsync()" on your tile layer before retrieving the spatial reference?
Also tile layers does not support re-projection, so they will only render if their spatial reference matches that of the map.
No, I did not call the method , thanks for that .
How can I change the projection of tile layer while creating .tpk file ? As
there is no option in ArcGis desktop to add projection while creating .tpk
file ?
Duplicate question of : https://community.esri.com/message/778106?commentID=778106#comment-778106