GWT MAP 中的活动指示器
What I would like to have is an activity indicator, which is displayed after my app is up and running, but while GWT is making AJAX calls.
For example have a look at following site : http://www.foodtrucksmap.com/#
Any ideas on how to achieve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用此处中的活动指示器,它们是动画 gif,因此您可以像这样显示:
在您的资源界面中您可以设置图像:
当您进行异步调用时:
并在回调中:
You can use an activity indicator from here, they are animated gifs so you can display one like this:
and in your resources interface you would set the image:
When you make your async calls:
and in the callback:
几天前我不得不处理同样的事情。我所做的方法是创建一个图标并覆盖在地图上。
因此,在异步调用之前和地图启动之后,只需使用将图标添加到地图
,并在异步调用之后使用删除覆盖图
,我不确定这种方法有多正确,但这就是我所做的并且它有效。
I had to deal with the same kind of stuff few days back. The way I did was, created an Icon and Overlayed on the map.
So before the Async call and after you map is up, just add the icon to the map using
and after the Async call remove the overlay using
I am not sure how correct this approach is, but this is what I did and it worked.