Layer group toggling

Control individual base map layer groups

View on GitHub
SDK 1.0.0-rc.7

Water, land, buildings, road lines, labels and shields each leave the map on their own while the rest keeps drawing.

  • One BaseMapModule.get covers all of them. Its setVisible takes the group to act on, so a toggle per group needs no module per group.
  • baseMapLayerGroupNames is the list the panel is generated from, so the controls track the groups the SDK actually has.
  • isVisible reads each group’s real starting state, so a toggle for a group that ships hidden renders off.
  • Hovering a toggle shows what the group holds, read from baseMapKnobCatalogue by the group’s setting id, groups.<group>.visible.

Related examples