Thanks for that! On Mar 9, 4:53 pm, Andrew Leach <[email protected]> wrote: > On Mar 9, 4:14 pm, Denis <[email protected]> wrote: > > > I havehttp://bjmarine.net/maptest.htmlwhereI'm instantiating some > > UI elements. I then want to remove the 2 controls but can't see how. > > http://code.google.com/apis/maps/documentation/reference.html#GMap2.s... > > setUI doesn't remove UI elements. If you want to remove them, you need > to use removeControl(), which means that you must use addControl() to > add them in the first place so you can retain a reference. That > shouldn't be too much of an issue as you are constructing your > interface elements piecemeal anyway: just add them explicitly instead > of setting UIOptions. > > There appears to be a problem with setUI whereby the API complains if > maptypes are not explicitly set -- but that's not immediately relevant > to the question, and adding the maptype control separately will > eliminate it, too.
-- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en.
