How to make offline maps(using leaflet OSM) , by caching?

前端 未结 3 1555
感动是毒
感动是毒 2021-01-31 10:07

I am trying to make offline maps through caching (IndexedDB) in browser. I understand the concept is that I download and store the tiles of map first when connected to internet.

3条回答
  •  不思量自难忘°
    2021-01-31 10:32

    I have cache example implementation http://tbicr.github.com/OfflineMap/leaflet/index.html and code https://github.com/tbicr/OfflineMap/tree/master/leaflet_idb_sql_site.

    For storage used IndexedDB and WebSQL. Storage had low performance and not tested.

提交回复
热议问题