I want to use this library.

I have lattitude and longitude with me and i need to show the location on
the map.
Also, need to find the nearest locations based on lattitue/longitude.

I went through the docs but could not understand the right class to be used.

Can you give me some sample code ?

Thanks
Deepak

On Fri, Aug 31, 2012 at 6:52 PM, Thai Ha Duong <[email protected]>wrote:

> 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<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 [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.
>



-- 
Deepak Singh

-- 
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.

Reply via email to