Offline development of Bing Maps Silverlight Control

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.