Skip to content

Commit

Permalink
OpenLayers has had built-in OSM support since 2.10, no need for extra…
Browse files Browse the repository at this point in the history
… JS.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jbronn committed Sep 17, 2011
1 parent 30745b2 commit 1ec25c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion django/contrib/gis/admin/options.py
Expand Up @@ -121,7 +121,6 @@ class OLMap(self.widget):

class OSMGeoAdmin(GeoModelAdmin):
map_template = 'gis/admin/osm.html'
extra_js = ['http://www.openstreetmap.org/openlayers/OpenStreetMap.js']
num_zoom = 20
map_srid = spherical_mercator_srid
max_extent = '-20037508,-20037508,20037508,20037508'
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/gis/templates/gis/admin/osm.js
@@ -1,2 +1,2 @@
{% extends "gis/admin/openlayers.js" %}
{% block base_layer %}new OpenLayers.Layer.OSM.Mapnik("OpenStreetMap (Mapnik)");{% endblock %}
{% block base_layer %}new OpenLayers.Layer.OSM("OpenStreetMap (Mapnik)");{% endblock %}

0 comments on commit 1ec25c4

Please sign in to comment.