yugalatea / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

No way of clearing DirectionsPanel #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
gwt-maps-1.0.2
Detailed description:
There is no way of manually clearing the DirectionsPanel. When a 
consecutive direction request is made the directions get attached after 
the previous directions

Workaround if you have one:
none i know of. 

Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/gwt-google-
apis/browse_thread/thread/f514d4333e8bc576/ac4ea8177172fdef#ac4ea8177172fde
f

Original issue reported on code.google.com by slabarb...@gmail.com on 20 Feb 2009 at 5:09

GoogleCodeExporter commented 9 years ago
Patch up for review @ http://galgwt-reviews.appspot.com/6601

Original comment by galgwt.reviews@gmail.com on 21 Feb 2009 at 2:44

GoogleCodeExporter commented 9 years ago
Committed as r1286 to trunk/maps

Original comment by galgwt.reviews@gmail.com on 17 Mar 2009 at 2:32

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 18 May 2009 at 8:02

GoogleCodeExporter commented 9 years ago
Updating account names

Original comment by zundel@google.com on 21 Dec 2009 at 2:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I believe that DirectionResults.clear() should take care of it.

Original comment by zundel@google.com on 8 Jan 2010 at 10:03

GoogleCodeExporter commented 9 years ago
I was experiencing similar behavior of not being able to remove 
DirectionsResults markers or polylines. I was trying to do this in the 
DirectionsCallback.onSuccess method. So I had the thought that perhaps the GMap 
directions asynch routine had some more processing going on behind-the-scenes.  
Sure enough, if I throw the DirectionsResults.clear() method into a 
DeferredCommand, the markers and polylines remove successfully.

I suppose I should check if DirectionsCallback.onSuccess in Directions.java is 
being invoked at the wrong time.

Original comment by cdwo...@gmail.com on 10 Sep 2010 at 5:32

GoogleCodeExporter commented 9 years ago
Well this is all moot with GMap v2 being deprecated and all, but it's clear 
that Directions.java and DirectionsCallback aren't taking into account the GMap 
GDirections.addoverlay() event. Probably a versioning thing...

Original comment by cdwo...@gmail.com on 10 Sep 2010 at 5:45

GoogleCodeExporter commented 9 years ago
Hi,

can you help me please on how I can clear the directions panel ?

thanks
ronald

Original comment by RonCam...@gmail.com on 7 Mar 2011 at 7:42