Custom maps layer switcher conflicts with Demo page

Created on 14 October 2023, over 1 year ago
Updated 1 July 2024, 9 months ago

Problem/Motivation

If you define a custom map and visit the Leaflet Demo page at /admin/config/system/leaflet-more-maps/demo, you get this JavaScript error:

Uncaught DOMException: Document.querySelectorAll: '#~CustMap' is not a valid selector

Proposed resolution

Maybe disable the layer switcher script from running on the Demo page, if that's the cause?

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.2

Component

Code

Created by

🇩🇰Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024