GNavLabelControl is a new GControl that reverse geocodes the map location whenever the map moves or zooms. The top few levels of the address details are displayed in the control like
Current Location United Kingdom > Hampshire > Test Valley with clickable links that zoom and centre the map on each of the named locations. The control appears when the map moves, remains for about 10 seconds, then fades away. The default position of the GNavLabelControl clashes with the GMapTypeControl, so you may well need to move things around. Also, there seems to be a bug in the GNavLabelControl display. In some browsers, when the control is displayed after being hidden, the control is positioned as if it had zero size, causing it to be incorrectly placed if positioned with a RIGHT anchor. As if the position is being calculated with a hidden div (which the browser thinks has zero size) and then unhidden after being positioned. A workround is to position it with a LEFT anchor, which then means that you'll want to move the zoom control out of the way, like this: map.addControl(new GNavLabelControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(7,7)) ); map.addControl(new GLargeMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(7,30)) ); GNavLabelControl() takes two parameters, but I've no idea what they do, or even what type of variable they expect. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
