andydoroga1989 / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

DirectionResults.getPolyline() returning null #407

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
1.1.0

Detailed description:
When attempting to get the Polyline object back from a DirectionsCallback 
result I only get null.  I need to be able to manipulate the line myself 
instead of allowing the DirectionOptions control it for me.

If I specify the MapWidget in DirectionOptions it puts the Polyline on the map 
for me so I know that the results contain a Polyline.

Workaround if you have one:
None yet

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by obsidianx on 29 Jul 2010 at 9:24

GoogleCodeExporter commented 9 years ago
Never mind.  The problem is that the Directions results does NOT contain the 
polyline if not attached to a map and if the DirectionQueryOptions doesn't have 
setRetrievePolyline() enabled.

Better documentation might clear this up.

Original comment by obsidianx on 29 Jul 2010 at 9:32

GoogleCodeExporter commented 9 years ago
Glad you were able to resolve the problem.

Original comment by zundel@google.com on 29 Jul 2010 at 9:41