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