我在使用Windows phone nutiteq sdk时遇到了一些问题。
string onlineTiles = "http://tile.tgt72.ru/{zoom}/{x}/{y}.png";
var tileDataSource = new HTTPTileDataSource(1,10, onlineTiles);
此代码引发NullReferenceException。
{System.NullReferenceException: Object reference not set to an instance of an object.
at Nutiteq.DataSources.HTTPTileDataSource.SwigDerivedClassHasMethod(String methodName, Type[] methodTypes)
at Nutiteq.DataSources.HTTPTileDataSource.SwigDirectorConnect()
at Nutiteq.DataSources.HTTPTileDataSource..ctor(Int32 minZoom, Int32 maxZoom, String baseURL)
at CityTransportWP.MapPage.ApplySourceForMap()
at CityTransportWP.MapPage.InitMap()
at CityTransportWP.MapPage..ctor()
at CityTransportWP.CityTransportWP_XamlTypeInfo.XamlTypeInfoProvider.Activate_3_MapPage()
at CityTransportWP.CityTransportWP_XamlTypeInfo.XamlUserType.ActivateInstance()}
答案 0 :(得分:1)
感谢您举报此问题,这是SDK 3.1和3.2RC1中的错误。这已在3.2RC2中修复,将于本周(本周)发布。