The stack trace you pasted last time pointed to a comment in this file, which is why I suspected a version change might fix it.
I just checked the online demo: http://gwt.google.com/samples/HelloMaps-1.0.2/HelloMaps.html#Simple%20Directions And geocoding/directions still works there. I'm working on another piece of code that is similar, but creates DirectionsQueryOptions() with no arguments. The difference between these 2 and your example is that you are using the constructor that takes one Map argument. Could you try changing the way you use DirectionQueryOptions and see if makes a difference for you? -Eric. On Thu, Dec 18, 2008 at 1:26 PM, prad <[email protected]> wrote: > > today morning i tried using the latest version and i still get hte > same error. i looked up at their sample classes for directions and > nothing seems to be changed since the last version. am i missing > something here? > > On Dec 18, 1:01 pm, Eric Ayers <[email protected]> wrote: > > The latest version of the Maps API library for GWT is 1.0.2 and has > > modifications to the Directions class since 1.0.0 > > > > On Thu, Dec 18, 2008 at 10:06 AM, Pradnya Sute <[email protected] > >wrote: > > > > > > > > > i am using gwt-maps api verison 1.0.0 and in the script tag. > > > > > <script type="text/javascript" src=" > http://maps.google.com/maps?*gwt=1 > > > *&file=api&v=2&key=<my key>></script> > > > > > On Thu, Dec 18, 2008 at 6:35 AM, Eric Ayers <[email protected]> wrote: > > > > >> Can you tell me which version of the Maps API you are loading in the > > >> <script> tag and which version of the gwt-maps API you are using? > > > > >> On Wed, Dec 17, 2008 at 5:48 PM, prad <[email protected]> wrote: > > > > >>> All, I get this error when trying to load directions. I tried using > > >>> both load as well as loadFromWaypoints. I couldnt find a relevant > post > > >>> on the group so far. can someone help me here? > > > > >>> Here is my code: > > >>> map = new MapWidget(LatLng.newInstance(hotelBean.getHotelLat(), > > >>> hotelBean.getHotelLng()), 13); > > >>> map.setHeight("400px"); > > >>> map.setWidth("400px"); > > >>> mapPanel.add(map); > > >>> mainPanel.add(mapPanel); > > > > >>> DirectionQueryOptions opts = new DirectionQueryOptions(map); > > >>> String query = "from: 500 Memorial Dr, Cambridge, MA to: 4 Yawkey > > >>> Way, Boston, MA"; > > >>> Directions.load(query , opts, new DirectionsCallback() { > > >>> public void onFailure(int statusCode) { > > >>> LogUtils.debug("Failed to load directions: Status "); > > >>> Window.alert("Failed to load directions: Status "); > > >>> } > > > > >>> public void onSuccess(DirectionResults result) { > > >>> LogUtils.debug("Successfully loaded directions."); > > >>> } > > >>> }); > > > > >>> And below is the error > > > > >>> [ERROR] Uncaught exception escaped > > >>> com.google.gwt.core.client.JavaScriptException: (TypeError): > 'getStatus > > >>> ()' is null or not an object > > >>> number: -2146823281 > > >>> description: 'getStatus()' is null or not an object > > >>> at > com.google.gwt.maps.client.impl.__DirectionsImplImpl.construct > > >>> (Native Method) > > >>> at > com.google.gwt.maps.client.geocode.Directions.createDirections > > >>> (Directions.java:176) > > >>> at > > >>> com.google.gwt.maps.client.geocode.Directions.load(Directions.java: > > >>> 57) > > >>> at > > > > >>> > com.ihg.dec.apps.hi.gwt.hotel.client.navigation.HotelDetailDrivingDirectionsResultsView.addDrivingDirectionsMap > > >>> (HotelDetailDrivingDirectionsResultsView.java:177) > > >>> at > > > > >>> > com.ihg.dec.apps.hi.gwt.hotel.client.navigation.HotelDetailDrivingDirectionsResultsView.process > > >>> (HotelDetailDrivingDirectionsResultsView.java:74) > > >>> at > > > > >>> > com.ihg.dec.apps.hi.gwt.arch.navigation.AbstractEntryPoint.manageViewVisibility > > >>> (AbstractEntryPoint.java:207) > > >>> at > > > > >>> > com.ihg.dec.apps.hi.gwt.arch.navigation.AbstractEntryPoint.onHistoryChanged > > >>> (AbstractEntryPoint.java:162) > > >>> at > > >>> com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl > > >>> (HistoryImpl.java:56) > > >>> at com.google.gwt.user.client.impl.HistoryImpl.newItem > > >>> (HistoryImpl.java:103) > > >>> at > com.google.gwt.user.client.History.newItem(History.java:149) > > >>> at > com.google.gwt.user.client.History.newItem(History.java:132) > > >>> at > > > > >>> > com.ihg.dec.apps.hi.gwt.hotel.client.widgets.hoteldetail.directions.HotelDetailCustomDrivingDirectionsFormWidget > > >>> $1.onSuccess(HotelDetailCustomDrivingDirectionsFormWidget.java:193) > > >>> at > > > > >>> > com.ihg.dec.apps.hi.gwt.hotel.client.widgets.hoteldetail.directions.HotelDetailCustomDrivingDirectionsFormWidget > > >>> $1.onSuccess(HotelDetailCustomDrivingDirectionsFormWidget.java:1) > > >>> at > > > > >>> > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived > > >>> (RequestCallbackAdapter.java:215) > > >>> at > com.google.gwt.http.client.Request.fireOnResponseReceivedImpl > > >>> (Request.java:254) > > >>> at > > >>> com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch > > >>> (Request.java:226) > > >>> at com.google.gwt.http.client.Request.fireOnResponseReceived > > >>> (Request.java:217 > > > > >> -- > > >> Eric Z. Ayers - GWT Team - Atlanta, GA USA > > >>http://code.google.com/webtoolkit/ > > > > -- > > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp:// > code.google.com/webtoolkit/ > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
