locked
Bing Maps veapicore.js Syntax Error

    General discussion

  • I try to use Bing Maps (latest stable release v1.0 for windows store apps) but I get the following strange error:

    Exception was thrown at line 1, column 3756 in ms-appx://myapppackagename/Bing.Maps.JavaScript//js/veapicore.js
    0x800a139e - JavaScript runtime error: SyntaxError

    The error in veapicore.js is in the following statement: r=a(i.querySelectorAll(t))
    the value of t in the debugger is: "~.InfoboxExtension"

    Looks like the ~ character causes the error (if it is removed the function works ok).

    My scenario is:

    On itemDetail.js page definition, on ready I do the call: Microsoft.Maps.loadModule('Microsoft.Maps.Map', { callback: initMap })

    initMap function sets the mapOption credentials, center and zoom level and after

    map = new Microsoft.Maps.Map(document.getElementById("mapdiv"), mapOptions);

    is called.

    What's strange is that on Beta edition of the Maps SDK it was working!


    Friday, October 12, 2012 3:58 PM

All replies