如何在 Bing 地图中显示封锁的道路?
我正在为一个活动的应用程序工作。我在应用程序中集成了 Bing 地图(道路视图),以便人们到达地点。
但是,由于该活动,活动当天附近的道路肯定会被封锁。
所以我想显示路障,这样任何用户都不会通过查看地图上的方向而走上被封锁的道路。
请建议我应该做什么。
I am working for an application of an event. I have integrated Bing Maps (Road View) in the application to make people reach the venue.
But, due to the event certainly nearby roads will be blocked on the day of the event.
So I want to display the road blocks, such that any user does not take a blocked road by looking at the directions from the map.
Please suggest what I should do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会在地图上道路已关闭/将要关闭的每个位置添加一个图钉。
有关如何添加图钉的详细信息,请访问 http://msdn .microsoft.com/en-us/library/gg588383(v=vs.92).aspx
I'd add a pushpin to the map at each location where a road is/will be closed.
Details of how to add pushpins at http://msdn.microsoft.com/en-us/library/gg588383(v=vs.92).aspx
建议,您可以为那些将被封锁的道路创建 GPX 轨迹。 (在线查找 GPX 创建者或使用 GPS 记录器)
当您拥有此信息时,您可以使用特殊颜色将这些轨迹加载到地图上...
GPX 文件将包含 TrackSegments 并且它们包含具有纬度和经度的轨迹点。
诀窍是读出这些点并创建 LocationCollection 对象,该对象可以显示在地图上!
例子:
A suggestion, you could create GPX tracks of those roads that will be blocked. ( look online for GPX creators or use a GPS logger )
And when you have this information, you can load those tracks upon the map with a special colour...
A GPX file will contain TrackSegments and they contain Trackpoints, which have Latitude and Longitude.
The trick is to read out those points and create LocationCollection object, that can be show on the map!
Example: