Please read and follow the group's posting guidelines:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

--
Marcelo - http://maps.forum.nu
--


On Dec 26, 10:22 pm, kangus <[email protected]> wrote:
> Second try: first reply timed out and I lost everything .
>
> Fixed array:
> function int_block()
> {
>   var lat = new Array();
>   var lng = new Array();
>   var block = new Array();
>   lat[0] = 41.7934;
>   lng[0] = -113.52325;
>   lat[1] = 41.808;
>   lng[1] = -113.5137;
>   lat[2] = 41.7934;
>   lng[2] = -113.5136;
>   lat[3] = 41.7934;
>   lng[3] -113.53285;
>   lat[4] = 41.779;
>   lng[4] -113.53298;
>   block[0] = lat;
>   block[1] = lng;
>   return block;}
>
> then tried:
>     map.addOverlay(new GMarker(new GLatLng(block[0][i]+','+block[1]
> [i])));
>
> failed then tried:
> map.addOverlay(new GMarker(new GLatLng(41.7934, -113.52325)));
> and GMarker failed.
>
> I work with PLSQL and we overload function to deal with different data
> types, formats, I sometimes forget where I am.....
>
> 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