Legend module is used to render legend for the maps
To draw the legend shape and text.
Returns void
To calculate legend bounds and draw the legend shape and text.