diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/photos/admin.py | 10 |
1 files changed, 10 insertions, 0 deletions
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) |