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

Place Icon inside polygon

Mar 18, 2016 at 2: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
Mar 21, 2016 at 8: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.