Skip to content

Commit

Permalink
Fixed #17915 -- Switched GeoModelAdmin default WMS layer URL from Met…
Browse files Browse the repository at this point in the history
…acarta to OSGeo.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17762 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
claudep committed Mar 17, 2012
1 parent f0b9bb2 commit b452439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django/contrib/gis/admin/options.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GeoModelAdmin(ModelAdmin):
map_template = 'gis/admin/openlayers.html' map_template = 'gis/admin/openlayers.html'
openlayers_url = 'http://openlayers.org/api/2.11/OpenLayers.js' openlayers_url = 'http://openlayers.org/api/2.11/OpenLayers.js'
point_zoom = num_zoom - 6 point_zoom = num_zoom - 6
wms_url = 'http://labs.metacarta.com/wms/vmap0' wms_url = 'http://vmap0.tiles.osgeo.org/wms/vmap0'
wms_layer = 'basic' wms_layer = 'basic'
wms_name = 'OpenLayers WMS' wms_name = 'OpenLayers WMS'
debug = False debug = False
Expand Down
4 changes: 2 additions & 2 deletions docs/ref/contrib/gis/tutorial.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ the vertexes to the desired position.
.. _OpenLayers: http://openlayers.org/ .. _OpenLayers: http://openlayers.org/
.. _Open Street Map: http://openstreetmap.org/ .. _Open Street Map: http://openstreetmap.org/
.. _Vector Map Level 0: http://earth-info.nga.mil/publications/vmap0.html .. _Vector Map Level 0: http://earth-info.nga.mil/publications/vmap0.html
.. _Metacarta: http://metacarta.com .. _OSGeo: http://www.osgeo.org


.. _osmgeoadmin-intro: .. _osmgeoadmin-intro:


Expand All @@ -764,7 +764,7 @@ With the :class:`~django.contrib.gis.admin.OSMGeoAdmin`, GeoDjango uses
a `Open Street Map`_ layer in the admin. a `Open Street Map`_ layer in the admin.
This provides more context (including street and thoroughfare details) than This provides more context (including street and thoroughfare details) than
available with the :class:`~django.contrib.gis.admin.GeoModelAdmin` available with the :class:`~django.contrib.gis.admin.GeoModelAdmin`
(which uses the `Vector Map Level 0`_ WMS data set hosted at `Metacarta`_). (which uses the `Vector Map Level 0`_ WMS data set hosted at `OSGeo`_).


First, there are some important requirements and limitations: First, there are some important requirements and limitations:


Expand Down

0 comments on commit b452439

Please sign in to comment.