mirror of
				https://github.com/django/django.git
				synced 2025-11-04 13:39:16 +00:00 
			
		
		
		
	Fixed #20415 -- Ensured srid is not localized in openlayers template
Thanks pierremarc07 at gmail.com for the report.
This commit is contained in:
		
							parent
							
								
									da9d626be0
								
							
						
					
					
						commit
						0a29057ebe
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -12,7 +12,7 @@ OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.Sp
 | 
				
			||||||
{{ module }}.is_point = {{ is_point|yesno:"true,false" }};
 | 
					{{ module }}.is_point = {{ is_point|yesno:"true,false" }};
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
{{ module }}.get_ewkt = function(feat){
 | 
					{{ 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){
 | 
					{{ module }}.read_wkt = function(wkt){
 | 
				
			||||||
  // OpenLayers cannot handle EWKT -- we make sure to strip it out.
 | 
					  // OpenLayers cannot handle EWKT -- we make sure to strip it out.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue