none
Bing Map Cache RRS feed

  • Question

  • Hi

    I have created a user control containing a Bing Map Control in a windows 8 App, I use this user control inside a list view with 5 items, so I have a list of 5 Bing Maps in a one page. Everything is working fine but after a while working and navigating to this page, the app is crashed and suddenly it is closed. Is there a way to cache the map when the page is loaded for the first time?

    Thursday, March 14, 2013 3:14 PM

Answers

  • If you want to cache the state of the map then yes this could be done. You would need to attach to the Viewchange event of the map and when fired capture the view information of the map and store it in the user storage. When your app loads check the user storage for map view information.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Friday, March 15, 2013 11:27 AM
    • Marked as answer by Mohsen Vafa Friday, March 15, 2013 3:12 PM
    Friday, March 15, 2013 11:27 AM
  • Store the zoom level and center point of the map and use that to rest the map back to it's last known position.

    http://rbrundritt.wordpress.com

    • Marked as answer by Mohsen Vafa Friday, March 15, 2013 7:34 PM
    Friday, March 15, 2013 6:55 PM

All replies

  • If you want to cache the state of the map then yes this could be done. You would need to attach to the Viewchange event of the map and when fired capture the view information of the map and store it in the user storage. When your app loads check the user storage for map view information.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Friday, March 15, 2013 11:27 AM
    • Marked as answer by Mohsen Vafa Friday, March 15, 2013 3:12 PM
    Friday, March 15, 2013 11:27 AM
  • Thank you Richard for your answer,

    You said "capture the view information of the man and store in the user storage", do mean mean I should capture an image form the view information? could you please give me more and detail information?

    • Marked as answer by Mohsen Vafa Friday, March 15, 2013 7:34 PM
    • Unmarked as answer by Mohsen Vafa Friday, March 15, 2013 7:34 PM
    Friday, March 15, 2013 3:16 PM
  • Store the zoom level and center point of the map and use that to rest the map back to it's last known position.

    http://rbrundritt.wordpress.com

    • Marked as answer by Mohsen Vafa Friday, March 15, 2013 7:34 PM
    Friday, March 15, 2013 6:55 PM