Prevent the user from panning past downloaded MMPK map edge

418
3
04-17-2023 03:20 PM
DylanTettemer
New Contributor

Hello! We created a mmpk package that we download for offline use in our application which is currently running the 100.15.0 SDK. However, its bothering me that the user can pan past the map edge into the gray background. Is there anything I can add to the map within arcGIS Pro that i can access in the app? We currently only have the basemap in the package where we then add pins to it from within the application. The max extent property of the map is also null due to it only being the basemap and not a layer. I really appreciate any help!

0 Kudos
3 Replies
DiveshGoyal
Esri Regular Contributor

One approach would be to set the Map.maxExtent property

0 Kudos
DylanTettemer
New Contributor

Since we're downloading a pre downloaded map for our users, would we just instantiate a new Envelope and set that as the maxExtent? Because ideally what i am looking to do is when the map finishes drawing, have it zoom in and then set those boundaries so they cant pan past.

0 Kudos
DiveshGoyal
Esri Regular Contributor

yup, that would work

0 Kudos