• Resolved timjh

    (@timjh)


    Can we have a per-map option to keep the layers control expanded? This makes it more obvious (and saves a click).

    I have applied the following CSS to achieve the same effect in the meantime:

    .leaflet-control-layers { padding: 6px 10px 6px 6px; }
    .leaflet-control-layers-toggle { display: none; }
    .leaflet-control-layers-list { display: block; }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author skirridsystems

    (@skirridsystems)

    How about a leading + in the layers list to indicate that it should remain open?

    layers=”+Civil Parish|-Ecclesiastical Parish|-School Catchment”

    or perversely

    layers=”+-Civil Parish|Ecclesiastical Parish|-School Catchment”

    The per-item – sign indicates that item is not initially checked, the overall leading + indicates that the list stays expanded.

    Thread Starter timjh

    (@timjh)

    I think that would be good, probably better than adding another shortcode attribute. Although cryptic, it puts the setting (and the documentation thereof) in a layer context.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature request: keep layers control open’ is closed to new replies.