MMPK disable selection - runtime

249
1
01-31-2024 11:53 AM
AnonymousUser23
New Contributor III

Looking to see if anyone knows how to force runtime to not enable selection of a layer. I have disabled pop-up's and disabled selection before MMPK package creation but it is still selectable. I want to do this on the package side so I do not have to control it layer by layer in runtime. Thoughts?

 

Thank you

Tags (2)
0 Kudos
1 Reply
DavidFeinzimer
Esri Contributor

Hi @AnonymousUser23, apologies for the delayed response. The following should work:

1. Have popups disabled on the layer when the MMPK is generated.

2. Use identifyLayersAtScreenPoint:tolerance:returnPopupsOnly:completion: with returnPopupsOnly set true.

Any layer with popups disabled should no longer be returned.

 

I hope this helps,

David

0 Kudos