Esempio n. 1
0
 private void FeatureSource_WarningsUpdated(object sender, WarningsUpdatedNoaaWeatherWarningsFeatureSourceEventArgs e)
 {
     // This event fires when the the feature source has new data.  We need to make sure we refresh the map
     // on the UI threat so we use the Invoke method on the map using the delegate we created at the top.
     mapView.Dispatcher.BeginInvokeOnMainThread(() =>
     {
         mapView.Refresh(new[] { mapView.Overlays["Noaa Weather Warning"] });
         loadingIndicator.IsRunning = false;
         loadingLayout.IsVisible    = false;
     });
 }
Esempio n. 2
0
 private void FeatureSource_WarningsUpdated(object sender, WarningsUpdatedNoaaWeatherWarningsFeatureSourceEventArgs e)
 {
     // This event fires when the feature source has new data.  We need to make sure we refresh the map
     // on the UI threat so we use the Invoke method on the map using the delegate we created at the top.
     mapView.BeginInvoke(new InvokeDelegate(InvokeMethod));
 }