Created
April 20, 2015 04:01
-
-
Save hanislovingit/1d25192d86d0dd02f7d5 to your computer and use it in GitHub Desktop.
Bing-map-switch-map-view-type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MM = Microsoft.Maps; | |
function (val) { | |
switch (val) { | |
case '0': | |
map.setView({ mapTypeId: MM.MapTypeId.road }); | |
break; | |
case '1': | |
map.setView({ mapTypeId: MM.MapTypeId.aerial, labelOverlay: MM.LabelOverlay.hidden }); | |
break; | |
case '2': | |
map.setView({ mapTypeId: MM.MapTypeId.aerial, labelOverlay: MM.LabelOverlay.visible }); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment