My blog has been moved to

Tuesday, August 11, 2009

(again) the map of my world gets smaller as I sit here

I always wanted to help Marble, but I am guilty because until now I can't afford any time to play with it. All these years, I used to compile bleeding-edge Marble from time and time, use it, and basically that is it. Although since a long time ago I promised Torsten that I was willing to help Marble, actually only right after Gran Canaria Desktop Summit finally I devoted some time to study its code. The three of us, Torsten, Andrew and I also had a short but fascinating discussion during the summit.

Now, I still don't manage to contribute anything to Marble yet, but I already have something in my pipeline. You will likely hear from me in the coming weeks, so stay tuned.

Since I reckon I enter the wonderful territory of mapping world, I thought, well, let's familiarize myself a bit with the technology. I took a look at the interesting experimental Google Maps API v3 (which BTW does not require an API key). Using QtWebKit, I wrote a simple 300-lines example that shows a magnifying glass over the map (see the screencast). Of course, the area under is the zoomed version of the map.

Since I am flirting with Qt for S60 these days, I thought about bringing that example to the phone. However, instead of relying on Google Maps, I decided to leave the dark side and jumped to use OpenStreetMap instead. The result is effectively an example of how to render the tiles from OpenStreetMap using Qt, which also runs on S60. It does even have the night-mode feature.

Video, you asked? Thanks to Alessandro, here is the 52-second videocast that demonstrates it (or watch on YouTube), running on Nokia 5800:


Anonymous said...

Why not use Ovi Maps API?
I'd be interested in hearing if the combination Qt + Ovi Maps + Nokia is ready for "real" use.

Bugs Bane said...

Nice! The magnifying glass effect is sweet, too! Might be nice if it magnified a little more.

@ Anonymous - Try clicking on this link on anything but Windows / Mac for starters:

Ariya Hidayat said...

@Anonymous: Ovi Maps API? Seriously, the API is not even public yet (available only to limited "beta" receivers).

Anonymous said...

There seems to be a finger in the way every time... Idea: make a "handle" on the magnifying glass like the actual magnifying glasses have.

Anonymous said...

Pretty cool place you've got here. Thanks for it. I like such themes and everything that is connected to this matter. BTW, try to add some images :).