googlearchive / js-v2-samples

Samples for the DEPRECATED Google Maps JavaScript v2 API (formerly known as 'gmaps-samples')
Apache License 2.0
60 stars 130 forks source link

Map type control in maps with Earth #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Did anyone ever get the map type controls working with maps that can 
switch to Earth? I did not see an example, but in my tests have seen some 
odd behavior.

By default, I come up in hybrid mode and display the following map type 
options in the map type control: "Map", "Satellite", "Hybrid", "Terrain", 
and "Earth".
1) It seems like recently, maybe about the time I added the ability to add 
the Google bar, the map comes up in the right size and then suddenly gets 
a little taller. This might not be a problem, but when switching to Earth 
view, you see the bottom part of the previous view.

2) After switching to Earth view, the map type control disappears. I have 
been able to get it to reappear by calling some non-Earth type of 
functions. However, when using GMenuMapTypeControl, the control does not 
popup the "menu" and therefore does not let me switch views.

Original issue reported on code.google.com by Thomas.L...@gmail.com on 26 Jul 2008 at 2:54

GoogleCodeExporter commented 9 years ago
I'm having a similar issue, except the control doesn't disappear, it just 
disregards any of the settings on that page, so I can't customize the control 
at all. With earth disabled everything works perfectly.

Original comment by dir...@gmail.com on 19 Sep 2012 at 6:03