Ticket #10625: 10625.patch
File 10625.patch, 1.0 KB (added by , 13 years ago) |
---|
-
django/contrib/gis/templates/gis/admin/openlayers.js
1 1 {% load l10n %}{# Author: Justin Bronn, Travis Pinney & Dane Springmeyer #} 2 2 OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.SphericalMercator.projectForward); 3 3 {% 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 = {}; 5 5 {{ module }}.modifiable = {{ modifiable|yesno:"true,false" }}; 6 6 {{ module }}.wkt_f = new OpenLayers.Format.WKT(); 7 7 {{ module }}.is_collection = {{ is_collection|yesno:"true,false" }};