To render the Legend, follow the given steps.
Create a map sample and include the necessary script files.
A Legend is a key used on a map. It contains symbols with descriptions. It provides valuable information for interpreting what the map is displaying.
For enabling the Legend visibility, set api showLegend to true in the legendSettings.
The following screenshot represents the Legend visibility.
This page will automatically be redirected to the sign-in page in 10 seconds.