2009/10/21 Henri Bergius <[email protected]>:
> * 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)
    $map->add_object($person);
}

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

-- 
Henri Bergius
Nemein - Web Craftsmanship
http://nemein.com
_______________________________________________
maemo-community mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-community

Reply via email to