Order of the layers

277
1
03-15-2019 06:32 AM
AlexVelez
New Contributor III

Hi

I am using SDK .NEt 100.4 and i have a MMPK file created with the layers in a specific order, by example:

Layer 1

Layer 2

Layer 3

This is because i need to show the layers in that specific order and dont overlap , but when i load the package throught MobileMapPackage.OpenAsync(url) order is reversed:

Layer 3

Layer 2

Layer 1

How can I keep the original order?

Thanks!

Tags (1)
0 Kudos
1 Reply
dotMorten_esri
Esri Frequent Contributor

Are you seeing the layers render in the wrong order? Note that when you inspect the layers in the package, you'll see the bottom-most one first, top-most last (ie in the order things render in). This is also the same order XAML renders things in. If this is for display-purposes in a layer-list, you can always use the .Reverse() method on the list to get a reversed list for your itemssource

0 Kudos