1 message in com.googlegroups.google-mashup-editorAdding Geodesic Polylines in Javascript
FromSent OnAttachments
Reto Meier13 Aug 2007 05:21 
Subject:Adding Geodesic Polylines in Javascript
From:Reto Meier (reto@gmail.com)
Date:08/13/2007 05:21:43 AM
List:com.googlegroups.google-mashup-editor

Hi,

I'm working on a new project that would be improved significantly by the use of geodesic polylines. I've written the JavaScript to add the lines, but they're coming out at straight (non-geodesic) lines. The JavaScript snippet I'm using looks like this:

var points = []; points.push(fromPt); points.push(toPt); newpolyline = new GPolyline(points,"#ff0000", 3, 1,{geodesic:true}); var tripMap = google.mashups.getObjectById('worldMap').getMap(); tripMap.addOverlay(newpolyline);

I get the line, but it seems to be ignoring the optional geodesic parameter. I'm assuming this is because the Maps version in the editor is previous to the release that supports geodesic lines? Is this the case? Is there a way for me to change the maps version being used so I can use this feature?

Cheers Reto