Integrate BING Maps plugin

Integrate BING Maps plugin

  

Hi, I know in Outsystems it is preferred to download plugin code and then use these files as a Resource or dump the full

file content in a webblock (http://www.outsystems.com/forums/discussion/9727/how-to-integrate-a-jquery-plugin-in-outsystems-platform).


Now I want to integrate with Bing Maps to have some map functionality in our application. It seems that we cannot access and download the plugin code, we need to

link to the plugin in another way.


In other words, we need to reference the map control directly, so we need this line of code in the screen/webblock (head?):


asynchronously

<script type='text/javascript' src='https://www.bing.com/api/maps/mapcontrol?callback=GetMap' async defer></script>

or

synchronously

get "<script type='text/javascript' src='https://www.bing.com/api/maps/mapcontrol'></script>" in the page.


How can we achieve this?

Hi,

You can add it as a expression with escape content set to no on the screen.

Or in the preparation use the action RunJavascript that is on the extension HTTpRequestHandler

Update: Forgot the simple way that is include that script on the Javascript property of the webblock (in this place the JS cannot be dynamic)

Hope it helps you.

Marcelo