none
Bing Map tiles not updated after some time RRS feed

  • Question

  • Hi, I'm using wpf bing map and it sometimes have a problem updating the tiles of the map. My application will move the map according to the gps position and it is centralize to that position.

    Initially the map is drawn correctly.  As the user location changes incrementally to an area outside previously downloaded tiles, either: (a) more tiles are not fetched, or (b) tiles are fetched but not displayed, resulting in a fuzzy display of previously cached lower zoom layers.

    In the end, the whole map will be empty background with no tile except it still have the bing map logo and the scale on the bottom. Also, the map still will be centralize and move correctly to the position of the gps. I've also check that the internet connection is good at that time and i can browse web. One workaround is that to disconnect and reconnect the internet connection to trigger the bing map to show the tiles again.

    Does anyone have any idea on what could cause this problem or is there any event that i could listen or monitor to know when that the tiles is not updating?

    Wednesday, June 5, 2013 7:44 AM

Answers

  • Try forcing an update like so:

    private delegate void MyDelegate();
    public static void Refresh(DependencyObject obj)
    {
        obj.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Loaded,
            (MyDelegate)delegate { });
    }

    And then call this by doing something like: Refresh(myMap);

    http://rbrundritt.wordpress.com

    Wednesday, June 5, 2013 9:30 AM

All replies

  • Try forcing an update like so:

    private delegate void MyDelegate();
    public static void Refresh(DependencyObject obj)
    {
        obj.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Loaded,
            (MyDelegate)delegate { });
    }

    And then call this by doing something like: Refresh(myMap);

    http://rbrundritt.wordpress.com

    Wednesday, June 5, 2013 9:30 AM
  • Is there any event that i could listen or monitor to know when that the tiles is not updating?
    Thursday, June 6, 2013 1:08 AM
  • no. Basically what happens is the app tries to load in the tiles. If the request timesout  it then nothing appears in it's place and you see the grey background. The tile users are cached for performance.

    http://rbrundritt.wordpress.com

    Thursday, June 6, 2013 9:24 AM