From b76656706eb7f6da3cb41e2bc8a4097753ba9062 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 15 Dec 2015 21:52:27 -0500 Subject: added map to photos admin --- app/photos/admin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/photos/admin.py b/app/photos/admin.py index 4dcc32c..d8ad853 100644 --- a/app/photos/admin.py +++ b/app/photos/admin.py @@ -16,6 +16,16 @@ class LuxImageAdmin(OSMGeoAdmin): list_display = ('pk', 'admin_thumbnail', 'pub_date',) list_filter = ('pub_date',) search_fields = ['title', 'caption'] + # Options for OSM map Using custom ESRI topo map + default_lon = -9285175 + default_lat = 4025046 + default_zoom = 6 + units = True + scrollable = False + map_width = 700 + map_height = 425 + map_template = 'gis/admin/osm.html' + openlayers_url = '/static/admin/js/OpenLayers.js' admin.site.register(LuxImage, LuxImageAdmin) -- cgit v1.2.3