[maemo-community] A business case for Maemo

From: Henri Bergius henri.bergius at nemein.com
Date: Wed Oct 21 21:39:33 EEST 2009
2009/10/21 Henri Bergius <henri.bergius at nemein.com>:
> * Add a new view displaying users on a map

Just to show that this is trivial, here is how you display people on
map once they have a location:

// Prepare the map
$map = new org_routamc_positioning_map('maemopeople');

// Query persons
$qb = midcom_db_person::new_query_builder();
// Add some filters
$persons = $qb->execute();
foreach ($persons as $person)
    // Add the person to the map (you'd want to give person thumbnail here too)

// And show the map (normally you'd give map size and zoom level here)

Henri Bergius
Nemein - Web Craftsmanship
More information about the maemo-community mailing list