sharpmap / sharpmap.rendering.decorations.legend Goto Github PK
View Code? Open in Web Editor NEWA legend solution for SharpMap
A legend solution for SharpMap
Hi,I have asked about process of this project before and I know it is stoped. I want to continue this project by myself and make a control for it. Could you please give me some hints about structure and things I should do in case of creating control?
Thank you so much
Hi,
which nuget package does contains the legend? SharpMap itself does not seem to contain it and I can't find a SharpMap.Rendering.Decorations.Legend package.
Best Greetings
Hi,
I am using this code to have a legend
` try
{
LegendFactory factory = new LegendFactory();
((LegendSettings)factory.LegendSettings).SymbolSize = new Size(24, 24);
((LegendSettings)factory.LegendSettings).HeaderFont = new Font("Times New Roman", 14, FontStyle.Italic, GraphicsUnit.Pixel);
var legend = factory.Create(map, null);
((MapDecoration)legend).BackgroundColor = System.Drawing.Color.White;
legend.Root.Label = "This is a super long legend title";
using (var img = legend.GetLegendImage(300))
{
img.Save("legendimage2.png");
System.Diagnostics.Process.Start("legendimage2.png");
}
legendControl1.Map = map;
legendControl1.Factory = factory;
}
catch (Exception e)
{
throw e;
}`
this code creates a png image which has legend of map.But I could not implement legend.UI to create a winform ui,I used this code
legendControl1.Map = map; legendControl1.Factory = factory;
but show nothing,even any errors.
Could you please help me with it?
thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.