Skip to content

Commit

Permalink
#312 fixed missing refresh in map page after data gathering.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuotvez committed Mar 12, 2024
1 parent 910feac commit da470b5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion GSCFieldApp/ViewModels/MapPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,16 @@ public void DisplayPointAndLabelsAsync(MapView inMapView, bool forceRefresh = fa
{
foreach (Graphic gr in _OverlayStation.Graphics)
{
loadedGraphicList[gr.Attributes[Dictionaries.DatabaseLiterals.FieldLocationID].ToString()] = gr;
if (gr.Attributes.ContainsKey(Dictionaries.DatabaseLiterals.FieldLocationID))
{
string gr_attr = gr.Attributes[Dictionaries.DatabaseLiterals.FieldLocationID].ToString();
if (loadedGraphicList.ContainsKey(gr_attr))
{
loadedGraphicList[gr_attr] = gr;
}

}

}

}
Expand Down Expand Up @@ -1475,6 +1484,7 @@ private void modalDialogClosed(object sender)
{
//Unpaused graphic refresh
pauseGraphicRefresh = false;
RefreshMap(pauseGraphicRefresh);
}

/// <summary>
Expand Down

0 comments on commit da470b5

Please sign in to comment.