Error on drawing a GoogleCirlcePolygon

May 1, 2010 at 10:25 AM

Does anyone get a intermittent error when drawing a GoogleCirclePolygon?

Code is:

    GoogleCirclePolygon C = new GoogleCirclePolygon();
    C.Latitude = S.Latitude;
    C.Longitude = S.Longitude; 
    C.Radius = S.radius;
    C.FillColor = System.Drawing.Color.Green;
    C.FillOpacity = 0.2F;
    C.StrokeOpacity = 0.5F;
    C.StrokeWeight = 1;

    GoogleMap1.Polygons.Clear();
    G.Polygons.Add(C);  // fails if this line is included (intermittent), OK if remmed out

 Error is

"HTILFile: unspecified Error", "Microsoft JScript runtime error: Object doesn't support this property or method pop-up",

and then in main.js on line:

__gjsload_maps2_api__('poly', 'var HF=function(a,b,c,d,f){b=b.x+(c-b.y)/(a.y-b.y)*(a.x-b.x);if(b<=f&&b>=d){a.x=I(b);a.y=c}}, IF=function(a,b,c,d,f){b=b.y+(c-b.x)/(a.x-b.x)*(a.y-b.y);if(b<=f&&b>=d){a.x=c;a.y=I(b)}}, JF=function(a,b,c,d,f,g){a.x>d&&IF(a,b,d,f,g);a.x<c&&IF(a,b,c,f,g...