Hello,
We noticed in a mmpk we authored with MinScale for one of our layers will correctly show and hide when we are in Debug on the iOS simulator for a mac paired to Visual Studio on Windows.
However, when we build for Test Flight as well as run that same paired mac iOS simulator in Release, the layer displays at all scales.
We are on 200.8.1 of the MAUI ArcGIS runtime.
Our older production Release on Xamarin forms 100.14.1 does not have this problem.
Can anyone think of any build options for Release we can try?
Thank you for your help!
Solved! Go to Solution.
Thanks for the additional details.
Since this only occurs in an iOS Release build and not in Debug, it seems more likely to be related to Release build configuration (linking, trimming, AOT, or LLVM optimizations) than the MMPK content itself.
To help narrow down the cause, could you try the following, starting with the simplest checks?
It would also be helpful to subscribe to GeoView.LayerViewStateChanged and capture the LayerViewStateChangedEventArgs for the affected layer. Specifically:
If the issue still reproduces, please try the following Release-build configuration changes:
If any of these checks or configuration changes affect the behavior, that would provide a useful workaround and help narrow down the root cause.
Thanks.
Thanks for the additional details.
Since this only occurs in an iOS Release build and not in Debug, it seems more likely to be related to Release build configuration (linking, trimming, AOT, or LLVM optimizations) than the MMPK content itself.
To help narrow down the cause, could you try the following, starting with the simplest checks?
It would also be helpful to subscribe to GeoView.LayerViewStateChanged and capture the LayerViewStateChangedEventArgs for the affected layer. Specifically:
If the issue still reproduces, please try the following Release-build configuration changes:
If any of these checks or configuration changes affect the behavior, that would provide a useful workaround and help narrow down the root cause.
Thanks.
Thank you for the swift and detailed suggestions @JenniferNery!
I made a mistake, it is purely a MinScale issue. There is no DisplayFilterDefinition involved at all and I revised the post to reflect that.
Debug iOS simulator - no issue
Release iOS similator - has the issue
Release TestFlight - has the issue
Release Windows - no issue
Debug Windows - no issue
Release Xamarin Forms AppStore - no issue
I'll try the rest of the suggestions tonight.
Hi @JenniferNery ,
I think I found my problem. I'm using AutoMapper to transfer some settings and in fact MinScale is not getting set which makes perfect sense.
Your suggestion to change linker behavior did help me find this. Thank you for your help!