> > I tried setting up a series of if loops to try and identify which > map type is displayed but I'm not sure which variable to test against
If you want to get the map type, it's map1.getCurrentMapType().getName() which returns the text shown in the relevant selection button. Perhaps you could then use a switch() statement to execute different blocks of code, rather than a series of if()s. http://www.w3schools.com/js/js_switch.asp However, since you have not provided a link to your map, whether that is in fact what you need is based on quite a bit of guesswork. And of course, we don't know that your map is actually called "map1". -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
