ListView Widget - Clear Selection

327
2
02-24-2020 03:25 PM
MarkJones7
Occasional Contributor

Hello,

Quick question regarding the ListView widget.

Is there a way to clear the highlightSymbol? I notice that even when  you close the widget the hightlightSymbol is still present on the map.

I have a ton of other questions regarding this widget but I figure I will start with a simple one. =]

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Mark,

   The List view widget does not have anything in the code for clearing the selection when the widget is closed. If you want to add that then you need to add an onClose function like this:

             onClose: function () {
                this.featureLayer.clearSelection();
             }
0 Kudos
MarkJones7
Occasional Contributor

awesome! much appreciated!

0 Kudos