diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-05-16 13:48:38 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-05-16 13:48:38 +0200 |
| commit | 0a29057ebea4335d503e373e4526b1c62c15bcdc (patch) | |
| tree | f47d3faeef1c1d1a75c0a1b0c5e1ae501cc3bd87 | |
| parent | da9d626be0ae3ab7d516083936e23aa7f3684e4a (diff) | |
Fixed #20415 -- Ensured srid is not localized in openlayers template
Thanks pierremarc07 at gmail.com for the report.
| -rw-r--r-- | django/contrib/gis/templates/gis/admin/openlayers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/templates/gis/admin/openlayers.js b/django/contrib/gis/templates/gis/admin/openlayers.js index 924621ea49..4425fee27e 100644 --- a/django/contrib/gis/templates/gis/admin/openlayers.js +++ b/django/contrib/gis/templates/gis/admin/openlayers.js @@ -12,7 +12,7 @@ OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.Sp {{ module }}.is_point = {{ is_point|yesno:"true,false" }}; {% endblock %} {{ module }}.get_ewkt = function(feat){ - return 'SRID={{ srid }};' + {{ module }}.wkt_f.write(feat); + return 'SRID={{ srid|unlocalize }};' + {{ module }}.wkt_f.write(feat); }; {{ module }}.read_wkt = function(wkt){ // OpenLayers cannot handle EWKT -- we make sure to strip it out. |
