Changes between Initial Version and Version 1 of Ticket #11634, comment 8
- Timestamp:
- Aug 25, 2021, 2:42:38 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11634, comment 8
initial v1 1 1 Since I marked #11094 as a duplicate of this one, I wanted to copy over this work-around that might be useful to people (as it was for me): 2 2 3 [https://code.djangoproject.com/ticket/11094 ?replyto=4#comment:4 jbronn wrote in #11094 comment 4]:3 [https://code.djangoproject.com/ticket/11094#comment:4 jbronn wrote in #11094 comment 4]: 4 4 > The `default_lon` and `default_lat` are not working for you because `OSMGeoAdmin` uses a different projection system than `GeoModelAdmin`. Specifically, `OSMGeoAdmin` uses the so-called "Google" projection (SRID=900913) and `GeoModelAdmin` uses WGS84 (SRID=4326). As such, just transform your `default_lon` and `default_lat` values to 900913: 5 5 > {{{