Bing Maps Module - Map not loading in Firefox.

Topics: General, Troubleshooting
Aug 29, 2012 at 1:29 PM


Issue described here:

I've implemented the suggested solution but it's not reliable. Any ideas?

(Firefox  <= 15.0)

Aug 30, 2012 at 10:23 AM


I've modified the BingMap view to use the latest version of the Bing Map Control handler (7.0) and the problem goes away. Would the author be interested in updating the module?

Sep 12, 2012 at 11:28 PM


Jan 28, 2013 at 3:35 AM

I was working through a tutorial today and installed the bing maps widget per the instructions. However, the map did not render on my page. I thought I was doing something wrong with the configuration parameters, but after double-checking everything appeared to be entered correctly. Still, no map. I was using Firefox at the time. When I tried in Safari, everything worked fine. So, the problem is evidently with Firefox. Is there a fix available for this? The previous response implies that the fix might have been addressed back in the fall, but still doesn't work. Is there an update available from somewhere other than the gallery that comes up in the Orchard admin UI? Please advise. Thanks.

Jan 29, 2013 at 12:43 PM
Edited Jan 29, 2013 at 3:13 PM

Just modify your local copy of BingMaps.cshtml.






    $(function() {

	  var map = new VEMap("BingMap@(mapIndex)");
	  var latlong = new VELatLong(@Model.Latitude, @Model.Longitude);
	  map.LoadMap(latlong, @Model.Zoom ,"h" ,false);
	  map.AddShape(new VEShape(VEShapeType.Pushpin, latlong));



    $(function() {

        var mapOptions = {
            credentials: "Your Bing Maps developer account key",
            center: new Microsoft.Maps.Location(@Model.Latitude, @Model.Longitude),
            mapTypeId: Microsoft.Maps.MapTypeId.aerial,
            zoom: @Model.Zoom,
            showScalebar: true

        map = new Microsoft.Maps.Map($("#BingMap@(mapIndex)")[0], mapOptions);
        var center = map.getCenter();
        var pin = new Microsoft.Maps.Pushpin(center); 


Look at the SDK Here