/ Published in: JavaScript
Important: this snipplet has moved to Github.
Expand |
Embed | Plain Text
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 // });
You need to login to post a comment.
