Currently, I am developing a Windows 8 application that will feature Bing Maps integration. However, I have encountered an issue while testing it in Visual Studio - an error message pops up saying
Unhandled expection at line 19, column 17 in ms-appx://fe56a029-c8e7-41e5-a755-b22871affb67/doglatrinemapsearch.html
0x800a1391 - JavaScript runtime error: 'Microsoft' is undefined
The code snippet causing the issue is as follows:
var map = new Microsoft.Maps.Map(document.getElementById("mapDiv"),
{
credentials: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
center: new Microsoft.Maps.Location(55.559549, 12.927881),
mapTypeId: Microsoft.Maps.MapTypeId.birdseye,
zoom: 100
});