diff --git a/CHANGES b/CHANGES index 0236abdb..a8e0d574 100644 --- a/CHANGES +++ b/CHANGES @@ -2,11 +2,14 @@ CHANGELOG ========= -0.32.1 (unreleased) +0.33.0 (unreleased) ------------------- - CSP: Don't test nonce for truthiness before inclusion #393 - Solve broken marker image paths in the admin panel #392 +- `map_width` and `map_height` are no longer supported in LeafletWidget `attrs`, + use traditional CSS to dimension maps (you can target the class + `.leaflet-container-default` for example.) 0.32.0 (2025-05-14) ------------------- diff --git a/docs/widget.rst b/docs/widget.rst index 49e66c5a..15bbafcb 100644 --- a/docs/widget.rst +++ b/docs/widget.rst @@ -93,8 +93,6 @@ To show a textarea input for the raw GeoJSON geometry, override admin ``form_fie from django.contrib.gis.db import models as geo_models LEAFLET_WIDGET_ATTRS = { - 'map_height': '500px', - 'map_width': '100%', 'display_raw': 'true', 'map_srid': 4326, } diff --git a/leaflet/templates/leaflet/widget.html b/leaflet/templates/leaflet/widget.html index 3dce00ea..9dbf16f8 100644 --- a/leaflet/templates/leaflet/widget.html +++ b/leaflet/templates/leaflet/widget.html @@ -4,13 +4,6 @@ {{ FORCE_IMAGE_PATH|json_script:"force-img-path" }} {{ reset_view_icon|json_script:"Control-ResetView-ICON" }} - -