Render delegate

Topics: SharpMap v0.9 / v1.x
Oct 7, 2011 at 11:32 AM


Is there a delegate for normal (no thematic) render of layers ?

A thing like:  Rendering.Thematics.CustomTheme(GetCountryStyle) but without thematics ? Or the only way is to use thematics ?




Oct 7, 2011 at 11:49 AM

No. What is it you want to achive?

Oct 7, 2011 at 1:17 PM

Thanks, It was what I thought.

In fact i would like to have each polygon fill with a gradient of color, same colors for all the polygon to have thing

like a shadow effect (I'm little bit complicated..)

I try to use some .net specific brush ( linearBrush ,...) but the pattern is related to the whole map, ie: the gradient starts on middle on the map and ends at the border.

I would like to have for example the gradient which starts at the center of each polygon, to do that, It's not possible to assign a brush to the layer, but a brush for each polygon.

I 'll try whith a theme.




Oct 7, 2011 at 1:30 PM

You may want to try the


along with a modified


class. You only need to modify the


function and set the rendering origin to the center of the polygon to be rendered.

Hth FObermaier

Oct 10, 2011 at 8:55 AM

Thanks for this

But do you have some inputs to use PolygonalLayer, I had a look on the ExampleCodeSnippets but there is nothing on Polygon.

I've tried to derive from Point without any success.


Oct 11, 2011 at 6:57 AM

I just added an example for the PolygonalLayer with a customized Symbolizer (rev 93482).

Hth FObermaier