mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #20415 -- Ensured srid isn't localized in OpenLayers JavaScript.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<style type="text/css">{% block map_css %}{% load i18n static %}{% get_current_language_bidi as LANGUAGE_BIDI %}
|
||||
{% load i18n l10n static %}
|
||||
<style type="text/css">{% block map_css %}{% get_current_language_bidi as LANGUAGE_BIDI %}
|
||||
#{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; }
|
||||
#{{ id }}_map .aligned label { float: inherit; }
|
||||
#{{ id }}_div_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; }
|
||||
@@ -25,7 +26,7 @@
|
||||
id: '{{ id }}',
|
||||
map_id: '{{ id }}_map',
|
||||
map_options: map_options,
|
||||
map_srid: {{ map_srid }},
|
||||
map_srid: {{ map_srid|unlocalize }},
|
||||
name: '{{ name }}'
|
||||
};
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user