Optionalgroups?: Partial<Record<BaseMapLayerGroupName, { visible?: boolean }>>The visibility of each layer group, applied over visible in the order given. An entry without
visible draws its group as the style ships it.
Optionalroads?: BaseMapRoadsConfigThe visibility of road parts on their own. A part never shows while its group is hidden.
Optionalvisible?: booleanWhether every base-map layer shows. If unset, each layer is drawn as the style ships it.
visible applies to every base-map layer, then each entry of groups to its group's layers, in
the order given. A later entry wins where two groups share layers, such as allPlaceLabels and
cityLabels. Whatever neither sets is drawn as the style ships it, and so is a group whose entry
leaves visible out. BaseMapModule.setVisible writes the same record, so getConfig()
reproduces every call.
Showing a group shows every layer in it, including the ones the style ships hidden, such as
detailed road markings. To keep the style's choice, leave a group out or its visible unset.
// Hide the buildings
const config: BaseMapModuleConfig = {
groups: { buildings2D: { visible: false }, buildings3D: { visible: false } }
};
// Hide everything but water and land
const minimalConfig: BaseMapModuleConfig = {
visible: false,
groups: { water: { visible: true }, land: { visible: true } }
};
The configuration of the BaseMapModule, at initialization or at runtime.
It controls the visibility and behaviour of base map layer groups.