The buttons underneath the buttons of ExtMapTypeControl are built with
this line that can be removed:

map.addControl(new GMapTypeControl());

The traffic button always appears a short time after loading the map
because the API has to check whether traffic data is available in the
viewport of the map.

I get the following in error when calling your map

Error: load is not defined
Source File: http://www.brummiesfans.com/googlemaps/test5.html
Line: 1

So I think you safely can remove onload="load()" from the body tag.






On Mar 17, 8:05 am, BrummiesFans <[email protected]> wrote:
> > 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
>
> Thanks for this, it's been most useful. I think we are getting very
> close to the final solution now. I used some inspiration from the
> above example to delete some code from my page and replace it with
> what was in the example above. The result is that:
>
> On load, there is no traffic button, and there are clearly some
> buttons "underneath" the map / satellite / hybrid / terrain buttons.
> Then, after one of the buttons is pressed, THEN the traffic button
> appears.
>
> All I now need to know is what lines of code to remove to get rid of
> the "buttons underneath", AND how to get the Traffic button there at
> page load time.
>
> Thanks again
>
> Martinhttp://www.brummiesfans.com/googlemaps/test5.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to