Fixed symbol size and fixed label size

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

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).

Thanks,
Coordinator
Sep 2, 2013 at 8: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 3:28 AM
Hi FObermaier,

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

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