GeoDjango 的管理站点Link to this heading

GISModelAdminLink to this heading

class GISModelAdminLink to this definition
gis_widgetLink to this definition

用于 GeometryField 的小部件类。默认为 OSMWidget

gis_widget_kwargsLink to this definition

将传递给 gis_widget 的关键字参数。默认为空字典。

GeoModelAdminLink to this heading

class GeoModelAdminLink to this definition
default_lonLink to this definition

默认的中心经度。

default_latLink to this definition

默认的中心纬度。

default_zoomLink to this definition

要使用的默认缩放级别。默认为 4。

extra_jsLink to this definition

一系列 URL,用于包含任何额外的 JavaScript。

map_templateLink to this definition

覆盖用于生成 JavaScript slippy map 的模板。默认值为 'gis/admin/openlayers.html'

map_widthLink to this definition

地图的宽度,以像素为单位。默认为 600。

map_heightLink to this definition

地图的高度,以像素为单位。默认为 400。

openlayers_urlLink to this definition

链接到 OpenLayers JavaScript 的 URL。默认为 'https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js'

modifiableLink to this definition

默认为 True。当设置为 False 时,禁用在管理员中编辑现有几何字段。

OSMGeoAdminLink to this heading

class OSMGeoAdminLink to this definition

GeoModelAdmin 的子类,使用 Spherical Mercator 投影,并使用 OpenStreetMap 街道数据瓦片。