django-rdf-tools / coop-geo

GeoDjango fields and geo widgets for django-coop
4 stars 3 forks source link

Création de template tags pour les champs géographiques #17

Open Nimn opened 12 years ago

domguard commented 12 years ago

In the actual demo, we have for each organization a GoogleMaps API jpeg showing the different points we need a template to display this little map, along with the interest zones (arealink polygon) of this organization

domguard commented 12 years ago

En français, il faut un templatetag qui appelle un objet et va exploiter ses relations génériques "Located" et "AreaLink" pour afficher les objets points et polygone

idealement :

{% simplemap 200x300 orga %} là, par exemple c'est un objet Organization qui est passé

L'idée est de pouvoir ré-exploiter le templatetag avec d'autres objets ensuite (Event, Exchange) pourvu qu'on leur attache des relations génériques Located et/ou AreaLink