How to you add a circle in Version 6.0

Jan 14, 2012 at 12:34 AM
 Artem.Google.UI.GoogleCircle area = new GoogleCircle();
                area.Center = new LatLng(_zipCode.Latitude, _zipCode.Longitude);
                area.FillColor = Color.AliceBlue;
                area.StrokeColor = Color.Red;
                area.StrokeWeight = 1;
                area.FillOpacity = 0.3F;
                area.Radius = Int32.Parse(Request.QueryString["Radius"]);
                area.Clickable = false;
                GoogleMap1. ???. 

Hi Velio,

Great work on the control. I upgraded to version 6.0 so I could get SSL support included.  I'm hoping it's going to work.  I cannot find how to add a circle to the map though.  Map.Polygons seems to be missing.  is there a new method for adding a circle?

 

 

Coordinator
Jan 15, 2012 at 8:01 AM
Edited Jan 15, 2012 at 8:02 AM

Hi,

The overlays: GooglePolygon, GoogleRectangle, GoogleCircle and GoogleGround, all can be added to the Overlays collection property of GoogleMap.
So, you should use:

 

GoogleMap1.Overlays.Add(area);

 

It is not so obvious and maybe in next version I will add Polygons helper property on top of Overlays.
The idea behind that was they are all overlays and should be added same way to the control and for future extenting the overlays.

Regards