Update map frontend and REST API

This commit is contained in:
Livvy Mackintosh
2017-05-23 01:12:04 +02:00
parent 2bd8775a61
commit 8a7faf7593
5 changed files with 66 additions and 9 deletions

View File

@ -6,5 +6,7 @@ from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^data.geojson$', GeoJSONLayerView.as_view(model=CaseStudy), name='data')
url(r'^data.geojson$',
GeoJSONLayerView.as_view(model=CaseStudy, geometry_field='location'),
name='data')
]