mercredi 6 mars 2013

MapQuickView - quickly view TMS layers on Android

In the past few days, I've been trying mobile development technologies for the first time. While learning and showing what I've done to my colleague at Mapgears, Simon Mercier suggested a mobile application I could work on that would be useful for him: a mobile mapping application to test how tiled layers look like on several devices.


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