gregallensworth / L.TileLayer.Cordova

Leaflet TileLayer subclass which caches to local filesystem, for Cordova/Phonegap
MIT License
87 stars 25 forks source link

Added method getCacheContents() + more #7

Closed mmerrill closed 9 years ago

mmerrill commented 9 years ago

Added method getCacheContents(), which returns a list of tiles in the cache; useful if you want to build a cache navigator in your UI. Added methods isOnline()/isOffline(). Added optional success_callback to constructor and utility function, which is called when all time-intensive filesystem activity is complete; useful for updating status indicators that rely on filesystem info (like getDiskUsage()). Added getLng()/getLat(), used by getCacheContents(). Updated doc and test app. Tested on Android 4.4.2 and iOS 8.3.

gregallensworth commented 9 years ago

This is great stuff! Thank you so much.

gregallensworth commented 9 years ago

Merged, closed.

mmerrill commented 9 years ago

Thank you for providing a library that did 90% of what I needed!