| Subcribe via RSS

libchamplain

Libchamplain is a C library aimed to provide a Gtk+ widget to display rasterized maps.  In these screenshots of the demo app, you can see Gtk+ buttons controlling the map widget, which displays the OpenSteetMap Mapnik tiles. Some screenshot have markers on them.

Current features

  • Display a map (OpenStreetMap Mapnik, OpenAerialMap, Maps For Free Relief)
    • Tiles are downloaded and cached
    • Downloaded tiles fade in
  • You can drag to move (à la Google Maps)
    • without or with kinetic scrolling (à la iPhone)
    • with elastic edges (à la iPhone)
  • You can zoom in / out (mouse wheel zoom requires patched Clutter-Gtk see bug)
  • You can center the map on coordinates (longitude, latitude)
  • Add markers on the map with a mixed Clutter/Champlain API
  • Add layers of markers
  • You can animate markers

Planned feature

  • 0.4
    • Interactivity (mouse click on the map)
    • API to create custom map sources
    • API to draw lines
    • Bug fixes
  • 0.6
    • Map rotation
    • Map inclination

Requirements

Libchamplain is based on

  • Gtk+ 2.10
  • Clutter 0.8
  • libsoup 2.4
  • Glib 2.16
  • Cairo 1.4

Why Champlain?

Libchamplain is named after Samuel de Champlain, famous French navigator, explorer and cartographer.  He is the “father of New-France” and founder of Québec city, which is the 400th anniversary in 2008, the year that this library was first created.

Development

You can get the LGPL code here and here.

You can get the documentation here.

You can report bugs on the Gnome Bugzilla under product champlain.

Download

Hubert Figuière created packages for OpenSuse 11.

Some one created packages for ArchLinux.

Packages for Ubuntu are in Anders M-Pedersen’s PPA.

There are Gentoo ebuilds waiting to be reviewed.

There are Debian packages waiting to be reviewed.

You can get the source tarball for 0.2.7

Contact

For information queries, ask Pierre-Luc Beaudoin.  Don’t forget to read the documentation here.

You can join me on IRC, I am pierlux on freenode and GimpNet.  There is also #champlain on freenode.