Polygon from point color

Topics: WPF
May 2, 2012 at 1:48 PM

Hi radioman :)

Great job ! I try to do a similar job for WinRT, and your work is a reference for me !

Do you know a way to customize polygon (from a point)'s color ?

Yes, there is probably other ways to make a colored overlay, but I'm curious (and maybe a little bit lazy ? "Shake yourself and find another way to do your colored overlay" is an acceptable response x) ). 

Thanks in advance, and congratulations again !

May 2, 2012 at 2:21 PM

;} ..so your question is?

anyway each polygon has OnRender function, you can override to create custom polygon

May 2, 2012 at 2:34 PM
Edited May 2, 2012 at 2:36 PM

Hmm, sorry for not being clear.

I've a point and an poly "on" this point ( GMapMarker.Polygon)
I would like to customize the colors of this polygon. An idea ?

Oh, and I'm in WPF, not in Windows Forms ;} (what a strange smiley :p )



May 2, 2012 at 3:32 PM

(marker.Shape as Path).Fill = Brushes.Red;

May 2, 2012 at 3:46 PM

Already tried that, but it raises NullReferenceException ? (I use the latest build)

... after a moment's reflection, run RegeneratePolygonShape before try to modify the shape seems usefull ;)

Thanks a lot radioman, your reactivity is impressive :D

May 2, 2012 at 4:56 PM

cheers ;}