Select to view content in your preferred language

Clear All Map Selections

1240
1
Jump to solution
11-30-2017 06:41 AM
MKa
by
Frequent Contributor

I can't seem to find the simple logic to clear all map selections?  Am I missing something here?

1 Solution

Accepted Solutions
MKa
by
Frequent Contributor

Nevermind.  I thought there would be a command, but i just did this

return QueuedTask.Run(() =>
                {
                    if (MapView.Active != null && MapView.Active.Map != null)
                    {     
                    MapView.Active.Map.SetSelection(null);
                    }

                };

View solution in original post

1 Reply
MKa
by
Frequent Contributor

Nevermind.  I thought there would be a command, but i just did this

return QueuedTask.Run(() =>
                {
                    if (MapView.Active != null && MapView.Active.Map != null)
                    {     
                    MapView.Active.Map.SetSelection(null);
                    }

                };