MapPackage

1080
3
06-14-2017 05:43 AM
JohnMcoy
New Contributor III

Hi everyone,

I have MapPackage. And how to lay on that on my tiled layer? MapPackage should be like graphicOverlay on tiledLayer.

At the moment i have this code for MapPackage. I imagine that is not very difficult to do.. 

Any ideas ? Waiting for help and suggestions. Thanks !!  

0 Kudos
3 Replies
AlexanderNohe1
Occasional Contributor III

I think there may be some confusion here.  A mobile map package is a self contained map that contains all the layers it needs.  It can be generated in ArcGIS Pro and deployed to devices that wish to work in an offline environment.  Rather than add the mobile map package to a tiled layer, you would want to pull the map from the mobile map package, add that to your map view, and then add your tiled layer to it. mapPackage.getMaps().get(0).getOperationalLayers().add(layer)

NathanMellor
Occasional Contributor

It may cause confusion that what you suggest doesn't actually work.

You can load a mobile map and then add a layer to it.

You may not get an error.

But the layer won't show up.

0 Kudos
AnttiKajanus1
Occasional Contributor III

Make sure that you use the same Spatial Reference with layers.

0 Kudos