Shelly Gill wrote:
You could create the Map from the same SpatialReference as your TPK (as tiles are not reprojected, then you'd need to do this so the layer displays). At that point the map has the full extent you wanted.
Can you show me some sample code on how to do this? I cannot find any references on this in the docs or guides
Let me explain the problem more clearly:
So I have 2 TPK files. Let's say 1 of them covers a small portion of the city of Eugene, Oregon, USA and another one covers a small portion of Portland. That means, the 1st TPK file's region is below the 2nd TPK file's region. The problem is, when I load both of them in a basemap, I am not able to pan the map from Oregon to Portland. The panning's stuck on the region of Oregon only.
Different case happens if the 2 TPKs are on the left or right of each other (Example: 1st TPK file is of Eugene, Oregon, USA and the 2nd one is of the city of Bend, Oregon, USA). In this case, I am able to pan the map to view both maps.
That is why I asked whether there's a way to set the map's extent to its fullest.
Thank you,
Jason