Hi, The SetUI is pretty sweet, but I did have one observation: (large map control and small zoom control both referred as zoom controls below discussion)
At Load, you can set the properties and all is well: For Example: ui = map.getDefaultUI(); // Make changes as required ui.controls.scalecontrol = false; ui.controls.overviewmapcontrol = false; ui.controls.largemapcontrol3d = false; ui.controls.smallzoomcontrol3d = true; map.setUI(ui) On toggling between setting the large zoom control and small zoom control, both zoom controls are displayed. ui.controls.largemapcontrol3d = true; ui.controls.smallzoomcontrol3d = false; map.setUI(ui) and then toggle: ui.controls.largemapcontrol3d = false; ui.controls.smallzoomcontrol3d = true; map.setUI(ui) At this point (after the toggles) both large and small zoom controls are displayed. When ui.controls.smallzoomcontrol3d = true, the small zoom control is on top. When false, it is underneath the large zoom control. Has anyone else experienced this? var ui = map. ui.controls.largemapcontrol3d = true; ui.controls.smallzoomcontrol3d = false; map.setUI(ui) if you enabled I've experienced that you cannot toggle, for example, between the default values; ui.controls.largemapcontrol3d = true; ui.controls.smallzoomcontrol3d = false; map.setUI(ui) Has anyone else had problems with On Feb 9, 12:09 pm, Esa <[email protected]> wrote: > On Feb 9, 8:42 pm, Esa <[email protected]> wrote: > > > If map is resized, getDefaultUI() returns always the properties of > > load moment > > Bullshit. It works perfect and returns properties of current map size. > Sorry, my bad. I fixed my code. > > http://esa.ilmari.googlepages.com/ui_methods.htm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
