Ok, cool, thanks for the hint, this does help... Didn't see this, but it does work :-)
Thanks again, Rainer On 9 Dez., 22:59, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Dec 9, 1:43 pm, klemmkeil <[EMAIL PROTECTED]> wrote: > > > > var map_type; > > > if (map.getCurrentMapType() == G_NORMAL_MAP) > > > map_type = "normal"; > > > if (map.getCurrentMapType() == G_SATELLITE_MAP) > > > map_type = "satellite"; > > > if (map.getCurrentMapType() == G_HYBRID_MAP) > > > map_type = "hybrid"; > > > I wish getCurrentMapType() would return exactly that! But it returns > > an object, that only holds the name (.getName()) shown on the button > > (which is language specific, for instance "Karte"). What I would like > > to query is the constant name (like G_NORMAL_MAP)... > > The "constant name" G_NORMAL_MAP is an > object...http://code.google.com/apis/maps/documentation/reference.html#GMapType > > That is why I suggested doing what I do, converting it to a string, > which is the same suggestion as Jürgen made. Mike Williams' > suggestion is probably more generally applicable, as it uses google's > own mapping. > > -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
