mirror of
https://github.com/django/django.git
synced 2025-10-30 09:06:13 +00:00
Fixed #25706 -- Refactored geometry widgets to remove inline JavaScript.
Refactored GIS-related JavaScript initialization to eliminate inline scripts from templates. Added support for specifying a base layer using the new `base_layer_name` attribute on `BaseGeometryWidget`, allowing custom map tile providers via user-defined JavaScript. As a result, the `gis/openlayers-osm.html` template was removed. Thanks Sarah Boyce for reviews. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
This commit is contained in:
@@ -73,6 +73,9 @@ Minor features
|
||||
function rotates a geometry by a specified angle around the origin or a
|
||||
specified point.
|
||||
|
||||
* The new :attr:`.BaseGeometryWidget.base_layer` attribute allows specifying a
|
||||
JavaScript map base layer, enabling customization of map tile providers.
|
||||
|
||||
:mod:`django.contrib.messages`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -332,6 +335,11 @@ Miscellaneous
|
||||
refactored to use Python's :py:class:`email.message.Message` for parsing.
|
||||
Input headers exceeding 10000 characters will now raise :exc:`ValueError`.
|
||||
|
||||
* Widgets from :mod:`django.contrib.gis.forms.widgets` now render without
|
||||
inline JavaScript in templates. If you have customized any geometry widgets
|
||||
or their templates, you may need to :ref:`update them
|
||||
<geometry-widgets-customization>` to match the new layout.
|
||||
|
||||
.. _deprecated-features-6.0:
|
||||
|
||||
Features deprecated in 6.0
|
||||
|
||||
Reference in New Issue
Block a user