GeoDjango’s admin site
default_lon
The default center longitude.
The default center latitude.
default_zoom
The default zoom level to use. Defaults to 4.
map_template
Override the template used to generate the JavaScript slippy map. Default is 'gis/admin/openlayers.html'
.
Width of the map, in pixels. Defaults to 600.
map_height
Height of the map, in pixels. Defaults to 400.
openlayers_url
Defaults to True
. When set to False
, disables editing of existing geometry fields in the admin.
Note
This is different from adding the geometry field to readonly_fields
, which will only display the WKT of the geometry. Setting modifiable=False
, actually displays the geometry in a map, but disables the ability to edit its vertices.
OSMGeoAdmin
A subclass of that uses a Spherical Mercator projection with street data tiles. See the OSMGeoAdmin introduction in the tutorial for a usage example.