我想使用Openlayer OSM层的单一缩放级别离线下载 Map 的选定部分的 Map . 我有 Map 的四个角,即 Map 的显示部分 .
但需要在四个角之间获取所有瓷砖图像或瓷砖 . 我已经回顾了一些例子:
Openlayers get the image url of the tile under the mouse
https://gis.stackexchange.com/questions/167792/how-to-retrieve-the-tile-url-in-openlayers-3
但我需要在客户按钮点击下载瓷砖 . 谁能帮帮我吗 .
1 回答
这是一个将tile保存为数据URL供以后使用的简单示例 . 如果在关闭并重新打开浏览器后需要保存的磁贴保持可用,请将sessionStorage替换为localStorage .