Load map with options
Load map with options
Map will show up here under JavaScript/Typescript mode
Load map (async)
var map = new Microsoft.Maps.Map(
document.getElementById('myMap'),
{
/* No need to set credentials if already passed in URL */
center: new Microsoft.Maps.Location(51.50632, -0.12714),
mapTypeId: Microsoft.Maps.MapTypeId.aerial,
zoom: 10
}
);
Additional details
You can customize the map when loading it. This example updates how the map is loaded such that it sets the type to aerial, the zoom level to 10, and the map center over London, UK (51.50632, -0.12714).