You need to set the 'map' property of the DistanceWidget to null.
myDistanceWidget.set('map', null);
Martin.
On Jan 7, 3:17 pm, Jim O <[email protected]> wrote:
> Re the DistanceWidget object:
>
> http://code.google.com/apis/maps/articles/mvcfun.html
>
> How would you remove the DistanceWidget object from the map? I am developing
> an interface where the user can click on map and add a DistanceWidget.
> However, when they click again to add a new DistanceWidget, the first
> remains on the map.
>
> Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en.