On May 13, 7:23 am, db <[email protected]> wrote: > Hi, > > I'm having trouble getting polylines to show up on my map. I have > tried it on IE7, Opera 9.21 and Firefox 3.0.10 all running on XP pro. > I'm a newby to the Google Map API and Javascript. > The link is:http://www.husmus.is/googlevefsja.htm > As the code is now (to keep it really simple) I'm trying to put in one > "test" polyline that should appear on the map when it loads. > > Can anyone please tell me what I'm doing wrong!
Please review the documentation: http://code.google.com/apis/maps/documentation/reference.html#GPolyline.GPolyline A GPolyline takes an array of GLatLng objects as its first argument. This (commented out) code is incorrect: // var lina = new GPolyline(point1, point2, "#ffffff", 4); As is this: // function createPolyline(point1,point2,name,category,html,max){ // var polyline = new GPolyline(point1, point2, "#ffffff", 4); -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
