You need to add another control to the map - map.addControl(new GHierarchicalMapTypeControl()
On Aug 31, 9:02 am, hassy33 <[email protected]> wrote: > Hi all, > I have a custommap which can be found > here:http://www.linkkings.com/hkbica_test/custommap.htm > > I am interested in adding a label on the top right (just like in > Google maps) where I can say what type of map that is. > > Ideally, if possible, I would be able to display another custommap > without having to reload the page, by adding such labels and upon > being clicked, the tiles would change. > > How would I go about to do that?? > > I see it everywhere but I tried to look at the source code and never > found how they do it. > > I looked at this > example:http://gmaps-utility-library-dev.googlecode.com/svn/tags/extmaptypeco... > > and found that the NASA map type has been added using the following > code: > var CUSTOM_MAP = new GMapType( [tilelayer], new GMercatorProjection > (20), "NASA" ); > map.addMapType(CUSTOM_MAP); > > which I am doing too but with no success.. > > Any idea? > > hk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
