very good Example

Jul 13, 2008 at 12:36 PM
hi velio,

i saw this example above for drawing polygons and i think is very interesting!!

http://googlemaps.itelios.net/Polygon.aspx

could you tell me how to do?

bye, kevins
Jul 15, 2008 at 1:35 AM
Here's my code:

GooglePolygon gon = new GooglePolygon();

               gon.FillColor = Color.Red;

               gon.FillOpacity = .8F;

               gon.StrokeColor = Color.Blue;

               gon.StrokeWeight = 2;

               GoogleLocation startPoint = null;

               foreach (GoogleLocation point in _points) {

                   if (startPoint != null)

                       gon.Points.Add(point);

                   else

                       gon.Points.Add(startPoint = point);

               }

               gon.Points.Add(startPoint);

               mapArea.Polygons.Clear();

               mapArea.Polygons.Add(gon);



Dec 1, 2008 at 11:39 AM
hi kevins

This very nice example for drawing polygons

but when i use your code in my page it shows this error

Error 1 The name '_points' does not exist in the current context 

Also I don't know how i can retrieve this data to save it the database



Regardes
Narnouri