none
Bing Maps not loading.... RRS feed

  • Question

  • Hi Team,

    We have one application, in which, we are using the Bing maps library to load the map. We are copying the code from Bing Maps library link: https://www.bing.com/api/maps/mapcontrolinto our Bingmaps.js file. We are facing  issues during the Map Load process. The code that we are using to load the map is mentioned below:

    var map =  new Microsoft.Maps.Map(document.getElementById('mapContainer'), {

                        credentials:bingMapKey,

                        enableCORS: true,

                        showZoomButtons: false,

                        showMapTypeSelector: false,

                        showLocateMeButton: false

                    });

    After executing the above code we are facing issue. Please find the error that we face below:

    “Cannot read property 'prototype' of null”

    We are using this code for the last 2 months. It was working properly, but now as we load our application, we are getting the above error.

    We cannot use the Bing map URL in the HTML page. Please guide us with the same. Waiting for your reply.

    Thanks,

    Vikas

    Thursday, July 18, 2019 12:37 PM

All replies

  • Hi Vikas,

    Please create a support case with the Bing Maps Support Team so that they can work through this with you.  Likely you have a missing item in the data you are presenting to get this message.

    Sincerely,

    IoTGirl

    Thursday, July 18, 2019 3:33 PM
    Owner