HTML offline map with local tiles via Leaflet
问题 Is there a way to display a map for a given area completely offline using HTML and JavaScript? I am looking for a mobile-friendly (read Cordova-enabled) solution. 回答1: There is an elegant solution for this problem in this blog post. I have compiled a full code example from it. Here are the steps: 1. Create map tiles download Mobile Atlas Creator create a new atlas with OSMdroid ZIP format make map and zoom selection, add your selection to the atlas click "Create atlas" unzip the atlas file