akvo.rsr.templatetags.maps module

Akvo RSR is covered by the GNU Affero General Public License.

See more details in the license.txt file located at the root folder of the Akvo RSR module. For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.

akvo.rsr.templatetags.maps.avatar(item, geometry='60x60', quality=99)[source]

Build user avatar.

Digs out the url to the visual representation from object. If no one exists defaults to empty string.

akvo.rsr.templatetags.maps.get_location(item)[source]

akvo.rsr.templatetags.maps.project_map(id, width, height, dynamic='dynamic')[source]

Project map.

params:

id: integer, id of project or organisation. width, height: the dimensions of the map. dynamic: ‘dynamic’ (default) or ‘static’, map is scrollable and clickable if ‘dynamic’.

akvo.rsr.templatetags.maps.projects_map(projects, width, height, dynamic='dynamic')[source]
params:

projects: Project queryset. width, height: the dimensions of the map. dynamic: ‘dynamic’ (default) or ‘static’, map is scrollable and clickable if ‘dynamic’.