sg

Çarşamba, Ocak 11, 2006

Re: Using getCurrentMapType()


I'm not too sure about this area of version 1 (it's one of the few areas
where the version 2 code is more readable).

In version 2, map.getCurrentMapType() returns a GMapType() object, and
you can use the .getName() method to find its name.
map.getCurrentMapType().getName();

I think that in version 1 it would be something like
map.getCurrentMapType().getLinkText();

Note that these return the names as *language*specific* text. E.g. if
your map is being viewed in France, the values will be "Carte",
"Satellite" and "Mixte".

--
The Blackpool Community Church Google Map API Version 2 Tutorial
http://www.econym.demon.co.uk/googlemaps2/

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık