On Dec 30, 9:00 am, qmpeople <[email protected]> wrote: > Hello Andrew, > thank very much for your help. > I just fixed "red" with its exadecimal value. > But the most important problem is not solved... > Here's what I see (http://www.qmpeople.com/news/friendships/gmap.jpg > )
Aha. I've reproduced that. The code now has polyline = new GPolyline([ new GLatLng(41,895466,12,482324), new GLatLng(41,895466,12,482324), ], "#FF0000", 5); map.addOverlay(polyline); Note the commas. In the API, decimal points must be full-stops, not commas. If you use commas, you are providing four arguments to GLatLng, and it will only take the first two. A longitude of 895466 is patently wrong! polyline = new GPolyline([ new GLatLng(41.895466,12.482324), new GLatLng(41.895466,12.482324), ], "#FF0000", 5); map.addOverlay(polyline); This is a server-side issue, because that's where that data is generated. I can see you're using ASP, but I've no idea what the database is or how to ensure that the number format is American/ English rather than European. 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 -~----------~----~----~----~------~----~------~--~---
