diff --git a/django/contrib/gis/templates/gis/admin/openlayers.js b/django/contrib/gis/templates/gis/admin/openlayers.js
index c455bff..d358bc9 100644
a
|
b
|
OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.Sp
|
107 | 107 | {% autoescape off %}{% for item in map_options.items %} '{{ item.0 }}' : {{ item.1 }}{% if not forloop.last %},{% endif %} |
108 | 108 | {% endfor %}{% endautoescape %} };{% endblock %} |
109 | 109 | // The admin map for this geometry field. |
| 110 | {% block map_creation %} |
110 | 111 | {{ module }}.map = new OpenLayers.Map('{{ id }}_map', options); |
111 | 112 | // Base Layer |
112 | 113 | {{ module }}.layers.base = {% block base_layer %}new OpenLayers.Layer.WMS( "{{ wms_name }}", "{{ wms_url }}", {layers: '{{ wms_layer }}'} );{% endblock %} |
113 | 114 | {{ module }}.map.addLayer({{ module }}.layers.base); |
| 115 | {% endblock %} |
114 | 116 | {% block extra_layers %}{% endblock %} |
115 | 117 | {% if is_linestring %}OpenLayers.Feature.Vector.style["default"]["strokeWidth"] = 3; // Default too thin for linestrings. {% endif %} |
116 | 118 | {{ module }}.layers.vector = new OpenLayers.Layer.Vector(" {{ field_name }}"); |