Blazor Maps Example - OpenStreetMap with Legend
This sample illustrates the world's top 10 most populated cities by displaying markers in their locations and legend with the city names.
In this example, you can see how to display markers and a legend on the OpenStreetMap. To enable the legend, set the Visible property in MapsLegendSettings to true, and then use MapsLegendTitle tag and properties like Position, Type, Height, Width, and so on to customize the legend.
More information about OpenStreetMap can be found in this documentation section.