Place Icon inside polygon

Mar 18 at 1:57 PM
Hi, I like sharpmap and I'm using it for map display.
I've a region with some states and I want place an icon on states center based on FeatureDataRow column (sorry my english).
I need center of State.
Can you help me
thanks
Coordinator
Mar 21 at 7:53 AM
You have two choices:
  1. Add the layer twice, once for rendering the outline, once more along with some sort of theme. In the getstyle method of your theme, you need to replace the geometry of the FeatureDataRow with a point and set the symbol according to the attribute data.
  2. You build yourself a PolygonSymbolizer that places Symbols, too.