Thank you, it works now. The coordinates was wrong and I didn't need the array
On 13 Jun., 16:18, Rossko <[email protected]> wrote: > > var points = []; > > 'points' is an array > > > varmarker= createMarker(points); > > You pass the array to createMarker() > > > varmarker= new GMarker(point); > > GMarker expects to be given one GLatLng, not an array of anything. > > Change > varmarker= createMarker(points); > to > varmarker= 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.
