diff options
| author | Claude Paroz <claude@2xlibre.net> | 2024-08-18 15:29:30 +0200 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-06-12 17:35:14 -0300 |
| commit | f2f6046c0f92ff1faed057da0711ac478eef439c (patch) | |
| tree | 56bcb44d903637bbdf319190a805e69eaf4d9f2a /docs/releases/6.0.txt | |
| parent | e80b33ae4d6f93375b10b2fe50bd6f588f1246ad (diff) | |
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>
Diffstat (limited to 'docs/releases/6.0.txt')
| -rw-r--r-- | docs/releases/6.0.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt index ade85a2173..118ad43cc9 100644 --- a/docs/releases/6.0.txt +++ b/docs/releases/6.0.txt @@ -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 |
