---
title: "Situs admin GeoDjango"
version: 1.9
locale: id
source: https://docs.djangoproject.com/id/1.9/ref/contrib/gis/admin/
canonical: https://djangodocs.dev/id/1.9/ref/contrib/gis/admin/
---
# Situs admin GeoDjango

## `GeoModelAdmin`

#### `class GeoModelAdmin`

#### `default_lon`

Garis bujur tengah awal

#### `default_lat`

Lintang tengah awal.

#### `default_zoom`

The default zoom level to use.  Defaults to 4.

#### `extra_js`

Sequence of URLs to any extra JavaScript to include.

#### `map_template`

Override the template used to generate the JavaScript slippy map.
Default is `'gis/admin/openlayers.html'`.

#### `map_width`

Width of the map, in pixels.  Defaults to 600.

#### `map_height`

Tinggi dari peta, dalam pixel. Stadnarnya 400.

#### `openlayers_url`

Link to the URL of the OpenLayers JavaScript.  Defaults to
`'http://openlayers.org/api/2.13/OpenLayers.js'`.

#### `modifiable`

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`](/id/1.9/ref/contrib/admin/#django.contrib.admin.ModelAdmin.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`

#### `class OSMGeoAdmin`

A subclass of [`GeoModelAdmin`](#django.contrib.gis.admin.GeoModelAdmin) that uses a spherical mercator projection
with [OpenStreetMap](https://www.openstreetmap.org/) street data tiles.
See the [OSMGeoAdmin introduction](/id/1.9/ref/contrib/gis/tutorial/#osmgeoadmin-intro)
in the tutorial for a usage example.
