>         var points = [];
'points' is an array

>                 var marker = createMarker(points);
You pass the array to createMarker()

>   var marker = new GMarker(point);
GMarker expects to be given one GLatLng, not an array of anything.

Change
    var marker = createMarker(points);
to
    var marker = createMarker(latlon);

In addition to that, GLatLng exepcts to be given two numbers, not two
strings.  You may want to convert your data, depending on teh source
that you haven't shown us, using parseFloat() or similar.

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