mardi 12 mars 2013

Mobile Emulation using Google Developer Tools

While searching for a way to test how web pages (and applications) on mobile phones, I learned about Mobile Emulation using Google Developer Tools on Chrome. You can set a User Agent (Android, iPhone, iPad, even IE 7-9, Firefox and so on), emulate touch events, etc. This is the fast and efficient way to develop & debug web applications I was looking for.

Note: this is not intended to develop/debug native applications, but plain HTML/JavaScript pages.

For the record, first I had tried running web browsers on Android emulators using Eclipse. It turned out to be very slow, plus I didn't really needed any OS feature since I just needed the browser and a way to debug.

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 !

jeudi 28 février 2013

OpenLayers ModifyFeature - trigger event of vertex clicked

In OpenLayers 2.12, when using the ModifyFeature control, after selecting a feature, its vertices become visible and can be dragged around, but there's currently no native way to trigger "click" events when a vertex is clicked.

It would be a very simple feature to have, as demonstrated in this example.

See also the original post on OpenLayers "Users" forum


mercredi 20 février 2013

La carte interactive de Ville Saguenay est désuète

En écoutant la radio ce matin au CKRS 98.3, j'ai entendu des citoyens se plaindre au sujet de l'état des routes.  Plus particulièrement, des nids de poules laissés sans entretien pendant plusieurs jours, des quartiers mal déneigés, etc.  Aussi, l'un d'eux mentionnait que dans la ville de Saint-Jean-Sur-Richelieu, il y avait une application en-ligne qui permettait d'annoncer quelles rues sont fermées pour déneigement, ce qui permet d'avertir le citoyen des rues qu'il peut utiliser pour se stationner.

Je me suis demandé s'il y avait une telle application ou une telle information sur le site Web de la ville de Saguenay, la ville où se situe l'entreprise pour qui je travaille.  En fouillant, je suis tombé sur le lien qui redirige vers la carte interactive officielle de la Ville de Saguenay.

Je ne peux pas croire qu'en 2013 de telles applications dinosaures soient affichées publiquement.  En plus de ne pas être intuitive, elle est affreuse et est loin d'être interactive!  La page se rafraichie à chaque navigation de la carte!

Je sais que jMap, la compagnie derrière le logiciel utilisé par cette carte, est capable de bien mieux que ça.  C'est probablement à la ville que le suivi de la vague technologique se fait à pas de tortue.  La carte devrait être plus invitante, plus jolie et surtout plus facile à trouver par des gens ordinaires. La géomatique devrait être un outil d'avant plan de nos jours.

Voici un prototype d'application de carte interactive  (login: noumea, password: mapgears) que ma compagnie a réalisée en décembre dernier pour la ville de Nouméa en Nouvelle-Calédonie qui démontre qu'il est possible de réaliser une telle application Web, avec des composantes uniquement "Open Source" en plus! La ville tirerait un grand bénéfice de mettre à jour leur carte au goût de l'an 2013.

Pour en plus à propos du prototype réalisé pour la ville de Nouméa, consulter cet article sur labs.mapgears.com.

jeudi 16 décembre 2010

WebMapping application for RPGs

I'm currently day-dreaming of an on-line Web Mapping  application displaying maps from my favorite Role-Playing games, such as the Forgotten Realms in Dungeon and Dragons...

The idea was posted on Wizards of the Coast Forum today.

I also posted on the Wizards COMmunity forum too after being told that the place would be more appropriate