Accessing Azure Table Storage from V8 map control Javascript RRS feed

  • Question

  • Could someone provide some sample code on how  to access Azure Table Storage from the Javascipt BingMpas V8 Environment. Should I be using Node JS or direct REST Calls? Code sample appreciated. 
    Friday, December 22, 2017 9:19 PM


  • The Bing Maps V8 "environment" is an HTML web page. There is nothing specific about Bing Maps V8 that would make accessing Azure Table Storage different from any other web page. You most like will need to enable COR's in Table Storage as you will be making a cross domain call to it. Here is a doc on how to do this: https://docs.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services From there I would recommend using the REST API as that would be fairly easy to do. 

    That said, if this is a public facing application, make sure that the data is only read only from the client app, otherwise you risk an end user being able to modify your data. Another option to make limit the access users have to your table storage is to access the data server side and pass it down to the web app using a simple web service via AJAX/JSON or ASP.NET.

    [Blog] [twitter] [LinkedIn]

    Thursday, December 28, 2017 8:15 PM