summaryrefslogtreecommitdiff
path: root/js_tests/gis/mapwidget.test.js
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>
2022-12-29Upgraded OpenLayers to v.7.2.2.Claude Paroz
2022-04-14Fixed #33637 -- Improved initial zoom level in MapWidget.Claude Paroz
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.
2020-03-16Bumped minimum ESLint version to 6.8.0.Jon Dufresne
2017-01-02Fixed #25004 -- Updated OpenLayers-based widget to OpenLayers 3Claude Paroz
Thanks Tim Graham for the review.
2016-12-19Updated to QUnit 2.0.1.Tim Graham
2016-07-31Fixed #26972 -- Fixed is_collection definition in MapWidget initializationClaude Paroz
2015-10-07Added basic JS tests for OLMapWidget.jsClaude Paroz
Thanks Trey Hunner for cleaning the initial patch and Tim Graham for the review.