MapQuickView - under the hood
From that idea came MapQuickView, which is built with PhoneGap for Android, Leaflet and jQuery.mobile. I used existing on-line examples to start from, like the OpenLayers jQuery mobile example and the Leaflet mobile example. New UI features were added using jQuery.mobile.TMS layers that are added are saved on the device using the Android Shared Preferences. More specifically, I used this really nice AppPreferences plugin for PhoneGap made by Simon MacDonald that I could simply use directly in JavaScript.
In the end, all was just a matter of assembling existing OpenSource components that are available on the web to build this application. It currently support TMS layers only, from existing live servers.
See it live
See what it looks like by visiting the Live web version (0.2), in which mobile-specific features don't work, but it will let you quickly feeling of the UI.
Install
If you wish to try it on your Android device, follow the installation instructions available on the GitHub repository. Feel free to comment and log any issue you find.
Enjoy !
Aucun commentaire:
Enregistrer un commentaire