Windows Phone 7 Map Control with custom layer in offline mode

前端 未结 6 1255
梦毁少年i
梦毁少年i 2021-01-12 09:42

Hi WP7 mobile passionate developers!

I\'m trying to use the default provided Bing Map control from Windows Phone controls. Specifically I\'m trying to use a custom T

6条回答
  •  一向
    一向 (楼主)
    2021-01-12 10:14

    You can find a solution in the blog http://invokeit.wordpress.com/2012/06/30/bing-mapcontrol-offline-tiles-solution-wpdev-wp7dev/

    In general, you just need

    1. Override GetUri function in TileSource class: return null to let MapLayerTile ignore this tile, and save the tile information to some background worker
    2. In the background worker, loading the tile from anywhere, either isolation storage or network, and then manually add it to a MapLayer control.

提交回复
热议问题