Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Mar 25, 2014
1 parent 35511f8 commit 2a56367
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -8,6 +8,7 @@ CHANGELOG
- Specify django-leaflet minimal version for GeoJSON model field
- Add various GeoJSON fields, for each geometry type
- Got rid of shapely for deserialization
- Improved `geojsonfeature` template tag (fixes #15, #16)


2.4.0 (2014-03-22)
Expand Down
9 changes: 9 additions & 0 deletions README.rst
Expand Up @@ -135,6 +135,15 @@ Will work either for a model, a geometry field or a queryset.
var collection = {{ object_list|geojsonfeature|safe }};


Properties and custom geometry field name can be provided.

::

{{ object|geojsonfeature:"name,age" }}
{{ object|geojsonfeature:"name,age:the_geom" }}
{{ object|geojsonfeature:":geofield" }}


Model and forms fields
======================

Expand Down

0 comments on commit 2a56367

Please sign in to comment.