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/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
