Legend widget

This device does not support 3D.

View the system requirements for more information.

This sample demonstrates how to add a Legend for a WebMap Layer to a 2D MapView. The map shows predominant educational attainment with darker colors indicating a stronger predominance.

The Legend widget can also be added to a 3D SceneView. You can use DefaultUI.add() method to add Legend to the UI. The widget renders inside its own DOM node nested within the view node. Legend must reference its respective View through the view property of the widget constructor object.

Sample search results

TitleSample

There were no match results from your search criteria.