diff options
author | luxagraf <sng@luxagraf.net> | 2024-05-09 16:46:51 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-05-09 16:46:51 -0500 |
commit | 06085dc492c1d558c0956cad7f3b4b6e39f11187 (patch) | |
tree | a8fc667dd39e5d2d7114105dda003e983fb602ae /app/sightings | |
parent | 36cec3379c541c93740dc50b4f706912edb5b69c (diff) |
admin: fixed all the maps to work with django 5 changes
Diffstat (limited to 'app/sightings')
-rw-r--r-- | app/sightings/admin.py | 11 |
1 files changed, 6 insertions, 5 deletions
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' } } |