From 06085dc492c1d558c0956cad7f3b4b6e39f11187 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 9 May 2024 16:46:51 -0500 Subject: admin: fixed all the maps to work with django 5 changes --- app/sightings/admin.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'app/sightings') diff --git a/app/sightings/admin.py b/app/sightings/admin.py index e5e5aaf..681568d 100644 --- a/app/sightings/admin.py +++ b/app/sightings/admin.py @@ -106,15 +106,16 @@ class SightingAdmin(GISModelAdmin): autocomplete_fields = ["ap"] # options for OSM map Using custom ESRI topo map lat, lon = get_latlon() + print(lat, lon) gis_widget_kwargs = { "attrs": { "default_lon": lon, "default_lat": lat, - "default_zoom": 6, - "map_width": 700, - "map_height": 425, - "map_template": 'gis/admin/osm.html', - "openlayers_url": '/static/admin/js/OpenLayers.js' + "default_zoom": 13, + "map_width": 900, + "map_height": 625, + #"map_template": 'gis/admin/osm.html', + #"openlayers_url": '/static/admin/js/OpenLayers.js' } } -- cgit v1.2.3-70-g09d2