ThinkGeo.com    |     Documentation    |     Premium Support

Legend and Scalebar

I need a legend and seperate scale bar for a print layout. I saw there was a post in 2007 where ThinkGeo said that a Web Legend control was in development. It is now 2 years later and I cant find a legend control anywhere. (other than the desktop edition)


 


Also all your controls (such as the scalebar) all seem to be developed to fit specifically in the current map view. I need to be able to place these controls seperately. I get the impression for my scale bar I can just create a new canvas with a scalebar on it scale to my main maps extent, but it would make much more sense to me to have a scale bar control I can just set an scale to and display it where I want. Also I don't like the layout of the scale bar in the examples, is there anyway to change it?



 


Jeremy,


Here is a thread talking about how to create custom legend layer.

gis.thinkgeo.com/Support/Dis...fault.aspx


If you want to display the scale bar anywhere you want you can set the property





scaleBar.Location = AdornmentLocation.UseOffsets;
scaleBar.XOffsetInPixel = 10;
scaleBar.YOffsetInPixel = 20;


This made the scale bar displayed based on the offset from the upper left point.


You can change the style of scale bar by changing the property of it, like BarBrush, Font, Thickness etc, and also you can create your own scale bar by inheriting from AdornmentLayer.


I have added this to our tracking system, and we will review it after the upcoming release.


Thanks,

ThinkGeo Support