Sunday, November 11, 2007

WMS Layers on iPod Touch

Almost two weeks since i got the IPT and so little time to hack into it... I still havent managed to install the iPhone applications but i got it 'jailbreaked' and have a Finder now with a couple additional icons. However it will probably not last long with the coming firmware updates...

It is quite exciting to see that the little tablet is a 400Mz OS X platform. There are already many sites dedicated to using the touch or the phone as an 'open', mobile, computing device and many applications are coming.

Blue Marble Next Generation on iPod Touch
Actually, the easiest way to make an application for these device is to use html and javascript with Mobile Safari. These are so called 'web applications'.

So back to Notepad and some good old school javascript, i put together a very simple mobile WMS browser (updated november 16).

This is not World Wind but at least you can browse a couple WMS layers i grabbed from the WMSLayerManager example in the WW Java SDK: Blue Marble Next Generation (june 2004), Blue Marble 'classic', Landsat7 I3, Global mosaic 15m visual, Terra/Aqua daily shots and a few others (including France BRGM geology and USGS layers).

Have a look at the source - its all contained in one page and it is very easy to add more layers. Feel free to copy, edit, reuse and abuse ;)

Tapping (or clicking) on the edges or corners of the tile will have you move sideways or in diagonal. Tapping inside the image will zoom on the corresponding latitude and longitude.

Some controls at the bottom let you zoom out, goto a specified latitude and longitude and select different layers. Still a bit crude, but usable... and you can put (and share) bookmarks anytime.

The page has to be hosted somewhere though. I wonder if it could simply be transfered in the IPT and opened locally with Mobile Safari. Probably easy to do if you know a bit OS X or Linux...

No comments: