79311032

Date: 2024-12-27 06:09:48
Score: 2.5
Natty:
Report link

Edwin on https://groups.google.com/g/leaflet-js/c/12gFXqjaPKY found the solution. You have to add force the state of the layers of the layerSwitcher with layerSwitcher.setVisibility(geoJsonLayer, false) The test page is updated. A+ Pascal

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pascal Boulesteix