清单4展示了用于装载图像的XML代码。
在过去,如果将一个图像装载进播放器,那么在完成处理之前无法停止。
In the past, if you loaded an image into the player, you couldn't stop the process until it completed.
这就是实现地图拖放功能的方法——在拖动地图时,服务器发送用户请求的地区的图像,地图立即装载它。
This is how the drag-and-drop capability of the map comes to life — when the map is dragged, the server sends the image for the area you are requesting, and the map loads it immediately.
应用推荐