我是 Windows Phone 开发的新手,我目前正在为一家公司构建一个应用程序,该公司想要使用自己的地图(构建地图块)。我想在解决方案中使用 BingMap silverlight 控件。我的问题是:这真的可能吗?我试图通过像这样从 MapTiles 类继承来覆盖“GetUri”方法;
public class MyTiles : Microsoft.Phone.Controls.Maps.TileSource
{
public override Uri GetUri(int x, int y, int zoomLevel)
{
if (zoomLevel > 0)
{
var Url = string.Format(UriFormat, Server, MapMode, zoomLevel, x, y);
return new Uri(Url);
}
return null;
}
}
是否可以在没有 HTTP 请求的情况下加载地图?
提前谢谢了
Nroblex