MapLibre interaction pattern

Control map layers with ordinary HTML.

Radio buttons swap background imagery; checkboxes toggle reference overlays. Each input changes an existing MapLibre layer, keeping the form independent from the map canvas and easy to extend.

Map controls

Choose one background and any combination of overlays.

Background
Reference overlays

Core pattern: listen for change, then set each layer’s visibility.

Berkshire County, Massachusetts

Loading overlays…
Towns ACECs