summaryrefslogtreecommitdiff
path: root/django/contrib/gis/static
AgeCommit message (Collapse)Author
2026-04-19Formatted JavaScript files.Tom Carrick
2025-08-05Fixed #36537 -- Ensured unique HTML IDs for geometry widget option scripts ↵Matthias Kestenholz
in the admin. This work amends the code from f2f6046c0f92ff1faed057da0711ac478eef439c where multiple geometry widgets rendered `<script>` elements in the admin with the same HTML `id`, resulting in invalid HTML and fragile JavaScript selectors. Refs #25706. This change uses the widget's textarea ID to generate a unique `id` for each JSON options `<script>`, ensuring valid and robust markup. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-06-12Fixed #25706 -- Refactored geometry widgets to remove inline JavaScript.Claude Paroz
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>
2024-05-06Migrated to ESLint 9+.Mariusz Felisiak
2023-09-18Refs #33924 -- Removed BaseGeometryWidget.map_height/map_width attributes ↵Mariusz Felisiak
per deprecation timeline.
2022-12-29Upgraded OpenLayers to v.7.2.2.Claude Paroz
2022-08-12Fixed #33924 -- Deprecated BaseGeometryWidget.map_height/map_width attributes.Claude Paroz
2022-08-01Refs #25706 -- Removed inline CSS in the openlayers widget template.Claude Paroz
2022-08-01Made MapWidget a JS class.Claude Paroz
2022-04-14Fixed #33637 -- Improved initial zoom level in MapWidget.Claude Paroz
2021-11-30Refs #25706 - Removed inline JavaScript from OpenLayers template.Claude Paroz
This allows setting a Content-Security-Policy HTTP header.
2020-11-28Fixed #21021 -- Changed BaseGeometryWidget's default geometry type to ↵Giannis Adamopoulos
'Geometry'.
2020-07-01Simplified JavaScript with Array.prototype.includes().Jon Dufresne
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
2020-04-29Refs #31493 -- Changed IIFE to ES6 blocks.Jon Dufresne
2020-04-29Fixed #31493 -- Replaced var with const and let keywords in JavaScript.Jon Dufresne
The eslint configuration and the admin script compress.py have been updated for ES6. The unused fallback of globals.django in jquery.init.js was removed. It is always included before jsi18n-mocks.test.js and it always sets the global value.
2019-11-28Fixed #31028 -- Used classList API to check, add and remove DOM classes.Jon Dufresne
Thanks to Claude Paroz for review.
2019-06-21Bumped minimum ESLint version to 4.18.2.Markus Holtermann
2018-05-10Upgraded OpenLayers to 4.6.5 for OpenLayersWidgetClaude Paroz
2017-01-02Refs #25004 -- Replaced PNGs with SVGselky
2017-01-02Fixed #25004 -- Updated OpenLayers-based widget to OpenLayers 3Claude Paroz
Thanks Tim Graham for the review.
2016-07-31Fixed #26972 -- Fixed is_collection definition in MapWidget initializationClaude Paroz
2015-07-22Fixed JavaScript "no-eval" violation.Tim Graham
2015-07-22Fixed JavaScript "strict" violations.Tim Graham
2015-07-18Fixed JavaScript "space-infix-ops" violations.Tim Graham
2015-07-18Fixed JavaScript "dot-notation" violations.Tim Graham
2015-07-18Fixed JavaScript "comma-spacing" violations.Tim Graham
2015-07-18Fixed JavaScript "indent" violations.Tim Graham
2015-07-18Fixed JavaScript space-before-function-paren violations.Tim Graham
2015-07-18Fixed JavaScript "curly" violations.Tim Graham
2015-06-27Fixed #22463 -- Added code style guide and JavaScript linting (EditorConfig ↵Trey Hunner
and ESLint)
2014-08-15Complemented 1.6 release notes for 457c16d0d6Claude Paroz
And accessorily added missing bits fixing #23293. Forward port of 2cbafd814 from stable/1.7.x
2014-06-03Removed erroneous trailing comma in OLMapWidget.js.Egor Semiguzov
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-01-20Fixed multi geometries editing in OpenLayers widgetClaude Paroz
2013-09-03Isolated map creation JS codeClaude Paroz
2013-09-03Prevented rendering attrs to be squashed in OSMWidgetClaude Paroz
2013-05-17Fixed #5472 --Added OpenLayers-based widgets in contrib.gisClaude Paroz
Largely inspired from django-floppyforms. Designed to not depend on OpenLayers at code level.