AnsweredAssumed Answered

Xamarin Forms - Map.Loaded event handlers not called on iOS (but it is on Android)

Question asked by mhamsa on Apr 9, 2019
Latest reply on Apr 9, 2019 by mnielsen-esristaff

Hello,

 

We've got an interesting problem. In the OnAppearing of on of our views that has a Map, we've wired up the Map.Loaded event and for some reason the event handler is not getting called on iOS - it is getting called on Android, but not on iOS.

 

Any ideas? The code is pretty straight forward...

 

        protected override void OnAppearing()
        {
            base.OnAppearing();
            EsriMap.Map.Loaded += Map_Loaded;
        }
        private void Map_Loaded(object sender, EventArgs e)
        {
            EsriMap.LocationDisplay.IsEnabled = true;
        }

 

Thanks,

Mike Hamsa

Outcomes