Create a legend control

This sample shows how to create a legend control and add it to the map. There are several built in legend types, such as category, gradient, and image. You can also create custom legend cards using HTML. This sample uses the open source Azure Maps Layer & Legend Control module