[gwt-contrib] GWT Google Map API V3.8 Direction with Waypoint
Hi all I having a problem with the gwt google map v3.8 api When i make a direction request with only source and destination i have a call back and it work When i add one or more waypoint then the call back do not occur. Here is my section of code. It will be a great help you can point out what i have done wrong here please final MapOptions myOptions = MapOptions.create(); myOptions.setZoom(14.0); myOptions.setMapTypeId(MapTypeId.ROADMAP); map = GoogleMap.create(Document.get().getElementById("map_canvas"), myOptions); LatLng source = LatLng.create(41.850033, -87.6500523); LatLng mid = LatLng.create(30.008226,-100.283203); LatLng destination = LatLng.create(40.69847032728747,-73.9514422416687); DirectionsRequest request = DirectionsRequest.create(); request.setOrigin(source); request.setDestination(destination); DirectionsWaypoint waypoint = DirectionsWaypoint.create(); waypoint.setLocation(mid); waypoint.setStopover(true); JsArray jsWaypoint = JsArray.createArray().cast(); jsWaypoint.push(waypoint); request.setWaypoints(jsWaypoint); request.setTravelMode(TravelMode.DRIVING); JSONObject requestJson = new JSONObject(request); request.setOptimizeWaypoints(true); final DirectionsRenderer directionsRenderer = DirectionsRenderer.create(); directionsRenderer.setMap(map); DirectionsService directionsService = DirectionsService.create(); directionsService.route(request, new DirectionsService.Callback( ) { @Override public void handle(DirectionsResult a, DirectionsStatus b) { System.out.println("here"); if(b == DirectionsStatus.OK){ directionsRenderer.setDirections(a); }else{ System.out.println("Error"); } } }); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)
Never mind, looks like a hard-coded list in our build file. https://gwt-code-reviews.appspot.com/1712803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)
On 2012/09/07 19:57:58, skybrian wrote: LGTM. Committing... I'm getting 500 errors in MultipleFactoriesTest. java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.google.web.bindery.requestfactory.shared.MultipleFactoriesTest.Factory1 RequestFactory type at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.load(Deobfuscator.java:57) at com.google.web.bindery.requestfactory.server.ResolverServiceLayer.updateDeobfuscator(ResolverServiceLayer.java:43) https://gwt-code-reviews.appspot.com/1712803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)
LGTM. Committing... https://gwt-code-reviews.appspot.com/1712803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)
On 2012/09/06 23:06:29, skybrian wrote: Thanks Thomas, that helps. (I think serverTypeToProxyTypes might be a better name.) Well, "domain" and "client" are used throughout the RF APIs, so it's more a matter of learning the definitions ;-) http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/web/bindery/requestfactory/server/ServiceLayer.html Now, whether domainTypeToClientTypes would be better than domainToClientTypes, I really don't mind. https://gwt-code-reviews.appspot.com/1712803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors