Answered Map freezes on load

  • Monday, July 23, 2012 1:40 PM
     
     
    In the latest version of Chrome the map sometimes freezes before the tiles are fully loaded. See below screenshot with the map expanded at the top of our search results. Webpage is www.pitchup.com/search.


    • Edited by Dan6789 Monday, July 23, 2012 6:15 PM
    •  

All Replies

  • Monday, July 23, 2012 6:23 PM
    Owner
     
     

    I'm unable to reproduce this issue. Try using the correct doctype on your web page:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    http://rbrundritt.wordpress.com

  • Monday, July 23, 2012 7:03 PM
     
     

    I was experiencing something similar with IE8 and came across Nicolas Boonaert's reply in the following post:
    http://social.msdn.microsoft.com/Forums/en-US/bingmapsajax/thread/e3bbc0d3-c4ff-4bc3-92f3-e530494e870a

    In essence, he suggests that we set the width and height in the mapOptions. 

    This seems to have worked for me so far (only limited testing done in IE8).  I'm not sure if it will fix your issue, but its worth a try.

    Shawn

  • Monday, July 23, 2012 8:43 PM
    Moderator
     
      Has Code

    Yes, I've taken a look in your code, and that's exactly what Shawn has encountered.

    You can easily fix this behavior by setting the size in pixel (width and height) in the mapOption.

    map=new Microsoft.Maps.Map($('#map').get(0),{
        credentials:'YOURKEY',
        width:$('#map').width(),
        height:$('#map').height(),
        customizeOverlays:true}
    );
    You'll be alright if you replace your actual code by this one.

    MVP - Bing Maps - My blog (FR): http://blogs.developpeur.org/nicoboo/ Twitter: http://twitter.com/nicolasboonaert/

  • Tuesday, July 24, 2012 10:48 AM
     
     
    Thank you Nicolas - this seems to have worked.

    Daniel Yates

  • Wednesday, July 25, 2012 6:24 AM
     
     
    Unfortunately we've just noticed the freezing again last night, so it looks like this didn't fix the problem after all. We'll try the doctype idea as well.

    Daniel Yates

  • Sunday, July 29, 2012 10:21 AM
    Owner
     
     Answered

    I ran a couple of tests against your site in IE8 and it worked fine. The doctype is incorrect and this can cause odd behaviors in some browsers. Taking a closer look at your account I noticed that you have pretty high usage, do you have a Bing Maps license? If so you can contact the Bing Maps Enterprise support team who can also assist you with this issue.


    http://rbrundritt.wordpress.com

  • Tuesday, August 14, 2012 2:49 PM
     
     

    We also experience some issues with Chrome browser in past week or so. Can you check it is fixed with their latest update?

    http://googlechromereleases.blogspot.com/


    MSFT
    Hemant Goyal