&引用;C#/Xaml Windows应用商店“;使用nodejs在本地主机上获取文件.mbtiles
我想在我的c#程序中使用一个使用nodejs服务器的平铺图。 服务器实际上正在工作,因为我可以在浏览器上看到互动程序。 问题是我的程序在Visual Studio上正常工作,但当我尝试在其他设备上使用打包版本时,它无法识别我的服务器。 这是我的实际代码:&引用;C#/Xaml Windows应用商店“;使用nodejs在本地主机上获取文件.mbtiles,c#,node.js,windows-applications,C#,Node.js,Windows Applications,我想在我的c#程序中使用一个使用nodejs服务器的平铺图。 服务器实际上正在工作,因为我可以在浏览器上看到互动程序。 问题是我的程序在Visual Studio上正常工作,但当我尝试在其他设备上使用打包版本时,它无法识别我的服务器。 这是我的实际代码: public MapPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(th
public MapPage()
{
this.InitializeComponent();
this.navigationHelper = new NavigationHelper(this);
this.navigationHelper.LoadState += navigationHelper_LoadState;
this.navigationHelper.SaveState += navigationHelper_SaveState;
MapTileLayer layer2 = new MapTileLayer();
layer2.Opacity = 1;
string ip = this.getCurrentIPAddress().ToString();
layer2.GetTileUri += (s, e) =>
{
e.Uri = new Uri(string.Format("http://localhost:3000/{0}/{1}/{2}.png", e.LevelOfDetail, e.X, e.Y));
};
MyMap.TileLayers.Add(layer2);
shapeLayer = new MapLayer();
MyMap.Children.Add(shapeLayer);
poiLayer = new MapLayer();
MyMap.Children.Add(poiLayer);
this.all_btn.IsChecked = true;
}
有人有主意吗?
感谢阅读=)
编辑:
这似乎是由于设备上缺少Visual Studio造成的
编辑2:
我尝试使用新的VS2015 Xaml控制器MapControl执行相同的过程,但我遇到了相同的问题
编辑3:
我回到了w8.1,似乎为了让应用程序正常工作,我必须安装VS并下载bing地图SDK,所以这可能就是原因=/