Skip to content

Repository files navigation

SharpMap.Rendering.Decorations.Legend

A legend solution for SharpMap

Step 1: Create your map

Step 2: Create your legend for the map

varfactory=newSharpMap.Rendering.Decoration.Legend.Factories.LegendFactory{HeaderFont=newSystem.Drawing.Font("Times New Roman",24),SymbolSize=newSystem.Drawing.Size(14,14);Indentation=7;//more properties are ItemSize, ForeColor; Padding};varlegend=factory.Create(map);// Get a legend imagevarlegendImage=legend.GetLegendImage();// Display the legend image on the mapmap.Decorations.Add(legend);

Here is an example:

Example image

About

A legend solution for SharpMap

Resources

Stars

7 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages