简体   繁体   English

实时地图更新

[英]Real time map updating

I have a web service that takes user location periodically. 我有一个Web服务,它会定期获取用户位置。

I want to create a desktop application that takes those values and shows the real time position of user on a map automatically. 我想创建一个桌面应用程序,该应用程序使用这些值并自动在地图上显示用户的实时位置。

What is the best method I can follow to get real time updates? 我可以遵循的获取实时更新的最佳方法是什么? Can I use Ajax ? 我可以使用Ajax吗? Does it support auto refresh? 是否支持自动刷新?

Is there a better method which supports auto refresh and also display real time data? 是否有更好的方法支持自动刷新并显示实时数据?

Thank you..! 谢谢..!

Check out the SignalR library. 签出SignalR库。 There is a server-part and a clients part (Javascript, rich client) etc.). 有一个服务器部分和一个客户端部分(Javascript,富客户端等)。 You could trigger the update in the client if the WebService was called. 如果调用了WebService,则可以在客户端中触发更新。 So the client is notified and could update his data accordingly. 因此,客户端将收到通知,并可以相应地更新其数据。 How many clients are connected? 连接了多少个客户端? Maybe some other message bus like library would be more appropriate? 也许像库这样的其他消息总线会更合适?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM