On Jun 8, 3:34 pm, "[email protected]" <[email protected]>
wrote:
> On Jun 8, 4:51 am, orkun <[email protected]> wrote:
>
> > hello
>
> > here is my code. But the polygon involved is not seen.
>
> > Could you tell me why ?
>
> Can you from what you've posted?
>
> Please provide a link to your map that exhibits the problem:

it is a jsf web application. I am still developing it in "localhost"


>
> http://groups.google.com/group/Google-Maps-API/web/suggested-posting-...http://groups.google.com/group/google-maps-api/web/why-including-a-li...
>
> 1. what are lat/lng?
> 2. is the polygon closed?

I constructed polygon points by entering as text. It looks ok.

I think Gpolygon construction has an error.
alert(polyPoints[3]); // ! OK  lat/long  (41.60027511551691,
32.895049203798)

alert(polygon.getArea()); gives NaN

>
> http://www.geocodezip.com/overlappingPolygonsNoStroke.asp
>
>
>
> > ~~~~~~~~~~~~
> >                  var polyPoints = new Array();
>
> >                 for (i = 0; i < data.length; i++) {
>
> >                         polyPoints[i] = [ new GLatLng(data[i].list_gmaplat,
> >                                         data[i].list_gmaplong) ];
> >                         //document.write(polyPoints[i],'__tag_412$37_');
> >                 }
>
> >                 var polygon = new GPolygon(polyPoints, '#FF0000', 0.1, 0.4,
> >                                                      '#FF0000',0.4);
>
> http://code.google.com/apis/maps/documentation/javascript/v2/referenc...
>
> GPolygon(latlngs:GLatLng[], strokeColor?:String, strokeWeight?:Number,
> strokeOpacity?:Number, fillColor?:Number, fillOpacity?:Number,
> opts?:GPolygonOptions)

I changed it same as in reference.
var polygon = new GPolygon(polyPoints, "#f33f00", 5, 1, "#ff0000",
0.2);

how can I check if it is closed ?
or
Shall I append polyPoints[0] so that first point and last point can be
same


>
> > The weight is the width of the line in pixels.
>
> Although a stroke weight should be an integer number of pixels...
>
>   -- Larry
>
> >                 map.addOverlay(polygon);
> > ~~~~~~~~~~~
>
> > kind regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to