11 · Offline maps
The Offline Maps button: pick an area, see how much it will take, and download it. Its tiles, fonts, places and roads are kept in the browser, so the map, search and directions all work with no connection. See Offline.
Open it full screen · Edit and run it · Full source: 11-offline.ts
control.offlineMaps({ resources: ['https://tiles.openfreemap.org/planet'] }).addTo(map)