On Dec 26, 4:22 pm, kangus <[email protected]> wrote:
> Second try: first reply timed out and I lost everything .
>
> then tried:
>     map.addOverlay(new GMarker(new GLatLng(block[0][i]+','+block[1][i])));

Why do you think new GLatLng(number','number) would work.  It should
give you an obvious error.

>
> failed then tried:
> map.addOverlay(new GMarker(new GLatLng(41.7934, -113.52325)));

That works on my map.

> and GMarker failed.
>
> I work with PLSQL and we overload function to deal with different data
> types, formats, I sometimes forget where I am.....

And that has what to do with the question?

If you read and follow the posting guidelines, and provide a link to
your map we might be able to tell where you are going wrong.
Or do what Andrew suggested.

  -- Larry

>
> On Dec 25, 1:42 pm, Andrew Leach <[email protected]>
> wrote:
>
>
>
> > On Dec 25, 8:15 pm, kangus <[email protected]> wrote:
>
> > > Why do I get an error on line 141 from the maps2.api main.js telling
> > > me I have an invalid argument?
>
> > Because GLatLng() takes two numeric arguments, and you are giving it a
> > string with a comma in it as the first argument and nothing as the
> > second.
>
> > What you have is the equivalent of
> > map.addOverlay(new GMarker(new GLatLng("41.7934, -113.52325")));
> > and you should have
> > map.addOverlay(new GMarker(new GLatLng(41.7934, -113.52325)));
>
> > Investigate split() and parseFloat(); or make each block[] element
> > into an array itself:
> > block[0]=[41.7934, -113.52325];
> > so that you can use block[i][0],block[i][1].
>
> > Andrew

--

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