Google Map API V3.0 - How to Detect MapTypeId Change

To add a listener to detect a zoom change works with the following:


What is the code to detect a change in the map type from ROADMAP to another view like SATELLITE? I can get the value:

val myMapType = map.getMapTypeId();

but do not know how to detect the change in view.

I am using the Google Map API V3.0


OK worked it out:

google.maps.event.addListener( map, 'maptypeid_changed', function() { 
    document.getElementById( "maptype" ).value = map.getMapTypeId();
} );

Need Your Help

Getting metadata from an audio stream

ios ios4 metadata audio-streaming avqueueplayer

I would like to get the file name and, if possible, album image from a streaming URL in a AVPlayerItem that I am playing with AVQueuePlayer but I don't know how to go about doing this.

UIActivityViewController in Swift Crashes on iPad

ios ipad swift uiactivityviewcontroller

I am making a share function in my game and I have the code and it works fine on iPhone but when I test it on a iPad, when I tap the share button the app crashes. I am using the following code for ...