Some people have previously asked how to develop Bing Maps Silverlight control offline. The following describes how to develop it. Whether it is wired or offline, the map data loaded is essentially different. You can use custom tilesource to load different map data.
Deploy map data
Deploy map data through Web servers (such as IIS)
Custom tilesource
This tilesource is used to load Google satellite maps, mainly for correct tilesource URL ing URLs.
Public class googletilesource: tilesource {public googletilesource (): Base ("http: // localhost: 6000/bj _ {0}/1_110000-000022.16.png ") {} public override URI geturi (int x, int y, int zoomlevel) {int Port = application. current. host. source. port; string url = string. format (this. uriformat, (zoomlevel + 1 ). tostring ("D2"), (y + 1 ). tostring ("D6"), (x + 1 ). tostring ("D6"), Port); return New uri (URL );}}
All right, let's talk about it.
The detailed link of this article must be noted during reprinting; otherwise, the author will retain the legal liability of the author.
Source: http://www.cnblogs.com/flute-di/
Author: Wang Di