This project has moved and is read-only. For the latest updates, please go here.

Fixed symbol size and fixed label size

Topics: SharpMap v0.9 / v1.x
Sep 2, 2013 at 4:11 AM

Currently when I zoom in/out the layer's symbol or label get's auto adjusted so that size/font remains the same with respect to display. This is a good behaviour sometime I like to have the CAD behaviour where the size remains the same with respect to drawing/map.

What option do I need to change so that the symbol/label will not dynamically change and when I zoom out way far, the symbol/label may not be visible. (just like in AutoCAD or MicroStation).

Sep 2, 2013 at 9:22 AM
For symbols you can override one of the pointsymbolizer classes and set the size according to the map's zoom value in the OnRendering overload and restor the value in the OnRendered overload.

For Labeling this is currently not possible.
Apr 1, 2014 at 4:28 AM
Hi FObermaier,

I too need fixed label heights. Has anything changed since this posting?

Apr 1, 2014 at 10:45 AM
No, I don't think so. You can achieve that functionality by implementing a SharpMap.Rendering.Thematics.ITheme.
Apr 1, 2014 at 10:51 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.