如何在Windows Phone 8地图控件中删除图层和路由线。 [英] How to Remove Layer and Route Line in Windows Phone 8 Map control.

查看:115
本文介绍了如何在Windows Phone 8地图控件中删除图层和路由线。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用航点创建路线 - >确定 

但是当我点击按钮当前位置(TRack Me) - >  应用程序失败并退出。

I have create route with waypoint--> ok 
But  then when I click the button current location (TRack Me ) ->  The application fails and exit.

这是源代码TrackMe: 

this is source code TrackMe : 

这是一个源代码 路线方向:
(查看更多)

and this is a source code Route Direction: (See More)

我认为GeoCoordinate的错误。因为在点击按钮RouteDirection之后,Track_Me中的对象Geocoordinate为空。

但是我无法修复错误。 

I think error by GeoCoordinate. Because after  click Button RouteDirection the object Geocoordinate in Track_Me is null.
But i can't fix error. 

抱歉,因为EN很糟糕。

谢谢!请帮助我

Sorry, Because EN very bad.
Thanks you! please help me

推荐答案

你好J,

否需要为你的英语道歉。 非常好! 我确信我用你的语言根本无法与你沟通,所以你做得比我做得好得多。

No need to apologize for your English.  It is very good!  I am sure I cannot communicate at all with you in your language so you are doing much better than I could.

如果你是对的,你需要找出为什么你得到一个null 。值 或者您可以测试null并跳过使用此值的代码。 这将假设在某些时候该值不为空。

If you are correct you will need to find out why you are getting a null value.  Either that or you can test for null and skip the code that is using this value.  This would assume that at some point that value is not null.

您是否有完整的代码供我们查看? 我可以查看的样本是否会出现此问题?

Do you have the complete code for us to look at?  Does this problem happen with a sample that is available for me to look at?

Jeff


这篇关于如何在Windows Phone 8地图控件中删除图层和路由线。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆