views:

656

answers:

4

How i add an addListener to GOOGLE MAPS to get MapType

+1  A: 

Try:

GEvent.addListener(map, "maptypechanged", function() {
    var newMapType = map.getCurrentMapType();
    // ...
})
Crescent Fresh
A: 

map.getMapType(); does not work :(

+1  A: 

ok! i found it myself map.getCurrentMapType().getName();