Draw status changed

76
1
02-08-2019 09:56 AM
New Contributor

Hello,

 

I'm working on some offline development and showing the spinner when map draw status changed. When I do window lock and unlock my window then I see that draw status changed event happens only one time, after that it's not executing.

Here is the sample code which I am using.

private void PgeMapView_DrawStatusChanged(object sender, DrawStatusChangedEventArgs e)
{
try
{
//Update the load status information
Dispatcher.Invoke(delegate ()
{
// Show the activity indicator if the map is drawing
if (e.Status == DrawStatus.InProgress)
{
labelMessage.Visibility = System.Windows.Visibility.Visible;
labelMessage.Text = "Loading layers..";
ProgressSpinner_lyr.Visibility = System.Windows.Visibility.Visible;
ProgressSpinner_lyr.Spin = true;
ProgressSpinner_lyr.Refresh();

//MapStatusProgressBar.IsEnabled = true;
//MapStatusProgressBar.Visibility = System.Windows.Visibility.Visible;
}
else
{
labelMessage.Visibility = System.Windows.Visibility.Collapsed;
ProgressSpinner_lyr.Visibility = System.Windows.Visibility.Collapsed;

}
pgeMapView.DrawStatusChanged -= PgeMapView_DrawStatusChanged;
pgeMapView.DrawStatusChanged += PgeMapView_DrawStatusChanged;
});

}

catch (Exception ex)
{
string message = ex.Message;
}
}

Reply
0 Kudos
1 Reply
New Contributor

I found the issue, this is happening when you add the feature table which does not have geometry. Now I am looking how to not add these feature tables on Map while loading GeoDatabase File.

Reply
0 Kudos