In v3, custom controls are just divs (or other HTML elements). You add
them to the map by pushing them onto the appropriate position array.
Conversely, you remove the control by removing it from the same array.
Try something like
map.controls[google.maps.ControlPosition.TOP_RIGHT].remoeAt(i) - where
i is the index of your control.

Chad Killingsworth

On Jun 3, 11:37 am, zildjian8987 <[email protected]> wrote:
> I was not able to find any postings about this... It seems that there
> is no more map.removeControl() in V3? Does anyone have any ideas how I
> could duplicate this behavior? Maybe I am going about things a little
> backwards, I am adding a legend to my map based on the data set that
> is selected. However, every time the code fires, it adds a legend next
> to the old one instead of erasing the old one.

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

Reply via email to