Ticket #10625: 10625.patch

File 10625.patch, 1.0 KB (added by Aymeric Augustin, 13 years ago)
  • django/contrib/gis/templates/gis/admin/openlayers.js

     
    11{% load l10n %}{# Author: Justin Bronn, Travis Pinney & Dane Springmeyer #}
    22OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.SphericalMercator.projectForward);
    33{% block vars %}var {{ module }} = {};
    4 {{ module }}.map = null; {{ module }}.controls = null; {{ module }}.panel = null; {{ module }}.re = new RegExp("^SRID=\d+;(.+)", "i"); {{ module }}.layers = {};
     4{{ module }}.map = null; {{ module }}.controls = null; {{ module }}.panel = null; {{ module }}.re = new RegExp("^SRID=\\d+;(.+)", "i"); {{ module }}.layers = {};
    55{{ module }}.modifiable = {{ modifiable|yesno:"true,false" }};
    66{{ module }}.wkt_f = new OpenLayers.Format.WKT();
    77{{ module }}.is_collection = {{ is_collection|yesno:"true,false" }};
Back to Top