Professional Documents
Culture Documents
I am working on an app that requires offline maps for a known region, in my case the city of Ottawa. I
am using Phonegap 3.0 for app development, Leaflet.js as my mapping library, and MobileAtlasCreator
to download my tile package.
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
{ maxZoom: 18 }).addTo(map);
L.tileLayer('img/mapTiles/{z}/{x}/{y}.png',
{ maxZoom: 16 }).addTo(map);
Geolocation Plugin added to project on another computer, developing for iOS, doesn’t work on my I think Clean Code is a beautiful book
computer, developing for android. I don’t have a perfect .gitignore for my Phonegap 3.0 projects yet, so and social entrepreneurship is the
there may be artifacts specific to my computer. coolest thing ever.
Solution: Run uninstall command for that plugin. Then re-install it.
david@davidrs.com
Research ToDo
Research tradeoffs of database vs separate files. Search
Post Tagged with leaflet, PhoneGap
Search
3 Responses so far.
Leaflet | Pearltrees says:
March 21, 2014 at 6:19 pm
[…] Phonegap 3.0 + Leaflet + Offline maps | David Rust-Smith […]
http://davidrs.com/wp/phonegap-3-0-leaflet-offline-maps/ 1/2
4/9/2018 Phonegap 3.0 + Leaflet + Offline maps | David Rust-Smith
how capturing geolocation with device offline - cordova - DexPage says:
June 28, 2015 at 2:27 am
[…] In addition, you´ll probably need Internet connection to show a map. There are not much solutions for offline
maps. Just artisan ones: http://davidrs.com/wp/phonegap-3-0-leaflet-offline-maps/ […]
javascript - how capturing geolocation with device offline - cordova - CSS PHP says:
January 17, 2016 at 11:37 pm
[…] in addition, you´ll need net connection show map. there not much solutions offline maps. artisan ones:
http://davidrs.com/wp/phonegap-3-0-leaflet-offline-maps/ […]
Leave a Comment
Leave a Reply
http://davidrs.com/wp/phonegap-3-0-leaflet-offline-maps/ 2/2