Prafulljohri / gwt-google-apis

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

Google Maps API 3.8, setWaypoints does not callback #497

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
Google Maps API 3.8

Detailed description:
DirectionsRequest.setWaypoints(waypoints);
After this line, the routing is not executed on the server,
the handler is never reached, the map is void of any markers our routes;
Without this line, the route is simple: origin -> destination;

Workaround if you have one:
concatenate origin1 -> destination1 =>route and render result
destination1 -> destination2 =>route and render result
..

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by lex.mail...@gmail.com on 5 Apr 2012 at 7:51

Attachments:

GoogleCodeExporter commented 9 years ago
same problems here!! i will try the workaround.

Original comment by victorsotonavarro on 4 Jul 2012 at 3:39

GoogleCodeExporter commented 9 years ago
can you show an example of this workaround?

Original comment by victorsotonavarro on 4 Jul 2012 at 4:00

GoogleCodeExporter commented 9 years ago
there are 2 attachments there, see ControlSimple.java

Original comment by lex.mail...@gmail.com on 4 Jul 2012 at 6:33

GoogleCodeExporter commented 9 years ago
Will this bug be fixed eventually?

Original comment by jsingle...@gmail.com on 17 Feb 2013 at 4:51

GoogleCodeExporter commented 9 years ago
Looks like a workaround similar to this applies:

http://code.google.com/p/gwt-google-maps-v3/issues/detail?id=17

if (!GWT.isScript()) {
   removeGwtObjectId(waypoint);
}

...
private native void removeGwtObjectId(JavaScriptObject jso) /*-{
   delete jso['__gwt_ObjectId'];
}-*/;           

Original comment by jsingle...@gmail.com on 17 Feb 2013 at 5:22