소스 검색

Removed unused map_options JS variable.

map_options is not referenced at all in OLMapWidget.js.

Unused since 2ebfda38e65177dfc7d6e90457ffa4a0fa2796f0.
Claude Paroz 3 년 전
부모
커밋
da7062be45
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      django/contrib/gis/templates/gis/openlayers.html

+ 0 - 2
django/contrib/gis/templates/gis/openlayers.html

@@ -13,7 +13,6 @@
     {% if display_raw %}<p>{% translate "Debugging window (serialized value)" %}</p>{% endif %}
     <textarea id="{{ id }}" class="vSerializedField required" cols="150" rows="10" name="{{ name }}">{{ serialized }}</textarea>
     <script>
-        {% block map_options %}var map_options = {};{% endblock %}
         {% block base_layer %}
             var base_layer = new ol.layer.Tile({
                 source: new ol.source.XYZ({
@@ -30,7 +29,6 @@
             geom_name: '{{ geom_type }}',
             id: '{{ id }}',
             map_id: '{{ id }}_map',
-            map_options: map_options,
             map_srid: {{ map_srid|unlocalize }},
             name: '{{ name }}'
         };