Clear All Map Selections

659
1
Jump to solution
11-30-2017 06:41 AM
MKa
by
Occasional Contributor III

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
Occasional Contributor III

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
Occasional Contributor III

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);
                    }

                };