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, Andrew Leach <[email protected]> wrote:
> On Jun 9, 1:32 pm, orkun <[email protected]> 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 array is not an array of GLatLng() objects.
>
> Simply using alert() to display values will not help, because alert(1)
> and alert([1]) both display 1. But the single-element array [1] is not
> the same as a scalar value 1.
>
> Currently your looped array polypoints[] is defined like [[1],[2],[3]]
> whereas your hard-coded array is [1,2,3].

-- 
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