Don't know if I'm able to explain it understandable. It's not possible to delete the map type buttons that are created by ExtMapTypeControl - except you edit the library itself. ExtMapTypeControl (called with or without any further options) always creates the standard API buttons: Map, Satellite, Hybrid. So these three buttons will always appear when using ExtMapTypeControl (in the current or the new version). But of course you can avoid the button to be created with
map.removeMapType(G_NORMAL_MAP); before the ExtMapTypeControl will be called. If the API creates other buttons at the same position, I'd guess that the later created buttons will be on top of the buttons created before. But the buttons should not appear twice one below or ebove the other. The reason why your "Hybrid" button has vanished therefore probably is, that there is one (or more other) button(s) above. If you mainly need the Traffic button in addition to the map type buttons, then you can do - for example - this http://xxamples.googlepages.com/brummie.html On Mar 13, 8:10 pm, BrummiesFans <[email protected]> wrote: > What I've discovered but which confuses me is that these additional > buttons seems to sit on a higher layer over the top of the existing > buttons. I've found that by altering the script, I can move the > "upper" buttons across to the left to uncover the buttons below. In > "test3.html" you can just see the original "satellite" button poking > through between the "Map" and "More" buttons, so presumably, the upper > layer buttons take over control from, and conceal the buttons below? > > Also confusing on my maps is that the "Hybrid" button has vanished. > Can it be brought back?. > > In all honesty, I can live without the "More" button for now, but I DO > need that "Traffic" button, to toggle the traffic layer on and off. So > if there is a way in test4.html or test5.html, one way or another, the > second Map button can be deleted and the "Hybrid" and add the > "Traffic" buttons inserted? If they can then I will be a lot happier. > > As I said before, I'm just a beginner, maybe out of my depth, but keen > to learn. For that reason, some simple "delete this" "cut that, and > paste over there" instructions would be much appreciated. I'll pick up > on the technical speak as I go. (and there are other things I want to > do with this once this stage is complete lol) > > Thanks again for the help > > Martin > > On Mar 13, 4:43 pm, "Pil (Trustworthy from Experience)" > > <[email protected]> wrote: > > 1. ExtMapTypeControl creates its own map type buttons, so you should > > not additionally create a map type button yourself - as my > > More...Button script does, because in this case the button(s) will > > appear twice. > > This means that you certainly can add the terrain map as the fourth > > map type, but not inside GHierarchicalMapTypeControl. > > GHierarchicalMapTypeControl and ExtMapTypeControl doesn't fit together > > excessively. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
