I have the same question please any one can help?To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/emLbrk1GnloJ.
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 post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
As far as, I know there has to be a unique for using google maps.Where would i place my unique key?I have a limited requirement to find near about places using LatLong, will it be enough to use just Basic map widget class?RegardsDeepak--On Wed, Sep 5, 2012 at 12:00 AM, Jonas <sar...@gmail.com> wrote:
Hi Deepak,
Here is a show case of different features from the library: http://gonevertical-apis.appspot.com/
You can find the source code here: https://github.com/branflake2267/GWT-Maps-V3-Api/tree/master/Apis_Maps_Test/src/com/google/gwt/maps/testing/client/maps
Regarding clearing the directions, Brandon has already fixed it.
Deepak Singh
Deepak
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.
--
Deepak Singh
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/r8sXg55osSoJ.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
did you get the issue with $wnd.google is undefined resolved?
Any guidance pls..
Deepak
Deepak
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
--
Deepak Singh
--To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/r8sXg55osSoJ.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
------
Deepak Singh
Deepak Singh
Deepak Singh
--
Deepak Singh
--
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/-/YC42P9rL5bkJ.
private void loadMapApi() {boolean sensor = true;// load all the libs for use in the mapsArrayList<LoadLibrary> loadLibraries = new ArrayList<LoadApi.LoadLibrary>();loadLibraries.add(LoadLibrary.ADSENSE);loadLibraries.add(LoadLibrary.DRAWING);loadLibraries.add(LoadLibrary.GEOMETRY);loadLibraries.add(LoadLibrary.PANORAMIO);loadLibraries.add(LoadLibrary.PLACES);loadLibraries.add(LoadLibrary.WEATHER);loadLibraries.add(LoadLibrary.VISUALIZATION);Runnable onLoad = new Runnable() {@Overridepublic void run() {draw();}};LoadApi.go(onLoad, loadLibraries, sensor);}
i've got the same issue:added gwt-maps-api-3.9.0-build-17.jaradded gwt-ajaxloader.jaradded the <inherits name='com.google.gwt.maps.Maps' /> in my project.gwt.xmlin this line: LatLng center = LatLng.newInstance(49.496675, -102.65625);when i debug my web app i get the error: $wnd.google is undefinedpls help.
Any guidance pls..
----
Deepak Singh
Deepak Singh
--
Deepak Singh
--To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/YC42P9rL5bkJ.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.For more options, visit https://groups.google.com/groups/opt_out.