Select to view content in your preferred language

map.infoWindow.clearFeatures() in API?

571
2
Jump to solution
01-31-2013 06:17 AM
deleted-user-ugCMpXci8bn5
Deactivated User
Hello, I have just a short question...I can't find the function map.infoWindow.clearFeatures() in the API.  I see it some code I am working on but I don't see any definition of the function anywhere, and I didn't see it in the API.  Am I overlooking something? Thanks, J
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Notable Contributor
The clearFeatures method is available for Popups. So if you are working with maps from arcgis.com or if you defined the Popup as your map's info window then you have access to this method.


http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#Popup/clearFeatures

View solution in original post

0 Kudos
2 Replies
DianaBenedict
Frequent Contributor
Jason

I would guess that it depends on how you are implementing the InfoWindow.  The user either closes the InfoWindow/Popup window if they are using that type of implementation or if the infoWindow is hooked up to the AttributeInspector for example then you would simply clear the feature layer selection.  For example, I have hooked up the AttributeInspector to a tab container so that the results are displayed in the left panel as opposed to the ESRI InfoWindow. Then I provided the user a button that allows them to clear the selection. In code behind, I call the FeatureLayer.clearSelection method.
0 Kudos
KellyHutchins
Esri Notable Contributor
The clearFeatures method is available for Popups. So if you are working with maps from arcgis.com or if you defined the Popup as your map's info window then you have access to this method.


http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#Popup/clearFeatures
0 Kudos