I have the same question please any one can help? On Friday, 31 August 2012 12:47:02 UTC+1, Jonas wrote: > > I'm using the GWT Maps V3 Api from > https://github.com/branflake2267/GWT-Maps-V3-Api > > After finding directions on the map, I'm trying to clear the previous ones > before finding new. > > In DirectionsRenderer: > > /** > * This method specifies the map on which directions will be rendered. > Pass null to remove the directions from the map. > * @param mapWidget > */ > public final void setMap(MapWidget mapWidget) { > setMapImpl(mapWidget.getJso()); > } > > private final native void setMapImpl(MapImpl map) /*-{ > this.setMap(map); > }-*/; > > I'm trying to pass: > > directionsDisplay.setMap(null); > > which results in NPE: > > Caused by: java.lang.NullPointerException: null > at > com.google.gwt.maps.client.services.DirectionsRenderer$.setMap$(DirectionsRenderer.java:50) > > Anyone used this API and knows how to clear directions from the map widget? >
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/emLbrk1GnloJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.