Open and center polygon

Topics: WPF
Nov 10, 2011 at 10:59 AM

Hi!

Is there anybody out there who knows how to:

1. create an "open" polygon (i.e. not having a closing line segment on a polygon)
2. set the "FillMode" to none for a polygon
3. center the polygon on a specified lat/long

Many, many thanks in advance!

Nov 10, 2011 at 11:25 AM

generate custom shape geometry

Nov 10, 2011 at 11:30 AM

Any suggestions?

Many Thanks!

Nov 10, 2011 at 11:33 AM

copy current function and modify for your needs

Nov 10, 2011 at 11:40 AM

I'd love to do that but we're in a *very* tight timeframe here so I'd like to put in a minimum of work right now. I only want to have a marker "plotted" as a series of line segments with no fill. That's it! Nothing fancy. I have a collection of PointLatLng that I'd like to plot as a GMapMarker and I'm very close with the "RegeneratePloygonShape" but I need to plot the resulting polygon centered based on the generated polygon path with no filling...

Many Thanks!

Nov 10, 2011 at 2:21 PM

Please disregard! Problem solved...:)

Nov 10, 2011 at 2:40 PM

be kind to share some code if you have a moment ;} maybe other people will need it too....

Nov 21, 2011 at 4:40 PM

Kodo... how do you resolved center a polygon in screen?

Nov 21, 2011 at 6:02 PM

try find min/max point of the polygon and use middle of it