To set the Legend title, follow the given steps:
Create a map sample and include the necessary script files.
The Legends are used to provide valuable information for interpreting the map displayed. The Legend title can be used to provide titles for Legends and it can be enabled by using the API title in the legendSettings.
Note: This API “title” is specific to Legend mode “interactive” and does not apply to default Legend.
The following screenshot shows the Legend title:
This page will automatically be redirected to the sign-in page in 10 seconds.