[maemo-community] A business case for Maemo
From: Henri Bergius henri.bergius at nemein.comDate: Wed Oct 21 21:39:33 EEST 2009
- Previous message: A business case for Maemo
- Next message: A business case for Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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) $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
- Previous message: A business case for Maemo
- Next message: A business case for Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]