/ Published in: JavaScript
                    
                                        
**Important: this snipplet has moved to Github.**
- [Get the current map style, even in automatic mode, in Bing Maps AJAX 7.0](https://gist.github.com/1973187)
                - [Get the current map style, even in automatic mode, in Bing Maps AJAX 7.0](https://gist.github.com/1973187)
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
var map = new Microsoft.Maps.Map(
document.getElementById("map"),
{
credentials: "YOUR-BING-KEY",
mapTypeId: Microsoft.Maps.MapTypeId.auto
}
);
Microsoft.Maps.Events.addHandler(map, "imagerychanged", function(){
var style = this.target.getImageryId();
//
// "style" contains the type of imagery being displayed
//
});
Comments
 Subscribe to comments
                    Subscribe to comments
                
                