You need to follow the Bing Maps SDK instructions here: https://github.com/blinkmobile/cordova-plugin-map#installation (don't bother actually installing the Cordova plugin unless you intend to use it)
You CANNOT put JavaScript in a script tag and expect it to execute in the Windows app. I know this is a pattern that everyone uses, but it absolutely doesn't work with Microsoft's security restrictions.
You MUST host the JavaScript somewhere and refer to it in externalJavaScript. This means only having script-free HTML (or PHP that generates it) in your navigable Interactions, and having a global event handler (e.g. "pageshow" as in my example) to activate any dynamic behaviour for selected Interactions (after a quick if-test to see if the current Interaction is one of those).
Code Block | ||||
---|---|---|---|---|
| ||||
<div id="bing-map"></div> |
...