diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/photos/admin.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/photos/admin.py b/app/photos/admin.py index b247bff..4dcc32c 100644 --- a/app/photos/admin.py +++ b/app/photos/admin.py @@ -24,6 +24,17 @@ class LuxGalleryAdmin(OSMGeoAdmin): list_display = ('title', 'location', 'pub_date') list_filter = ('location',) + # 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' + def get_urls(self): urls = super(LuxGalleryAdmin, self).get_urls() custom_urls = [ |