Re: Problem in GPolygon

2010-06-09 Thread Rossko
> I mean it should be without  barackets. Yes, that is what Andrew is saying to you. If you mean that your real example isn't like the snippets you are posting here, then that is an excellent example of why posting snippets instead of links is such a waste of everybody's time. -- You received t

Re: Problem in GPolygon

2010-06-09 Thread orkun
thank you Just after I sent my message, I noticed that "polyPoints[i] = [ new GLatLng(data[i].list_gmaplat, data[i].list_gmaplong ),]; " is wrong. it should be polyPoints[i] = new GLatLng(data[i].list_gmaplat, data[i].list_gmaplong ); I mean it should be without barackets. On Jun 9, 3:43 pm,

Re: Problem in GPolygon

2010-06-09 Thread Andrew Leach
On Jun 9, 1:32 pm, orkun wrote: > Although they have same input values , one of them doesn't work. > > What might be the reason ? Exactly the same reason as your previous posting. With your hard-coded points, you are correctly constructing an array of GLatLng() objects. With your loop, your arra

Problem in GPolygon

2010-06-09 Thread orkun
Hello I have two point array. They have same values. But they are generated differently. One of them is generated by a loop as: for (i=0; i< data.length; i++) { polyPoints[i] = [ new GLatLng(data[i].list_gmaplat, data[i].list_gmaplong ),]; //document.write(i,' -> ',polyPoints[