Issue 531 in gwt-google-apis: Can't remove previous directions polygon from Google map

3 views
Skip to first unread message

gwt-goo...@googlecode.com

unread,
Dec 5, 2013, 4:47:33 AM12/5/13
to galgwt-issue-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 531 by peterche...@gmail.com: Can't remove previous directions
polygon from Google map
http://code.google.com/p/gwt-google-apis/issues/detail?id=531

GWT newbie here, trying to render locations on a Google map.


Found in Release: google-maps (v3)

Detailed description:
I'm rendering directions on the map using a query ...

Directions.load(query, opts, new DirectionsCallback() { ...

I grab the polygon after it has rendered successfully.

public void onSuccess(DirectionResults result) {
route = result.getPolyline();

However when I rerun the query using different locations the old directions
are not being removed

I've tried to get the polygon 'route' set it to invisible and remove it
from the map before loading a new query ...

route.setVisible(Boolean.FALSE);
map.removeOverlay(route);

but this doesn't work.

Workaround if you have one:


Links to the relevant GWT Developer Forum posts:


Thanks in advance.



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

gwt-goo...@googlecode.com

unread,
Dec 5, 2013, 4:49:16 AM12/5/13
to galgwt-issue-...@googlegroups.com

Comment #1 on issue 531 by peterche...@gmail.com: Can't remove previous
Meant to say using gwt-maps.jar (v3)
Reply all
Reply to author
Forward
0 new messages