Maintenance and sites
Site Map <smart-site-map>
SiteMap puts many sites on one picture - the pump stations of a water network, the turbines of a wind farm, the substations of a grid - so that "where is something wrong" is answered with a place.
Stylesheet
The component is styled by source/styles/default/smart.sitemap.css, which is included in smart.industrial-elements.css. It uses the theme's CSS variables and the Industrial tokens (--smart-industrial-*) described in the Themes and Styling guide, so it follows the theme applied to the page.
CSS variables
The component declares 8 CSS variables of its own, on the component itself. Set them in a rule that selects the component, loaded after the component's stylesheet: smart-site-map, or a class or an id on it. A value set on a container does not reach the component, because the component's own declaration replaces the inherited one.
smart-site-map {
--smart-site-map-normal: ...;
--smart-site-map-warning: ...;
--smart-site-map-alarm: ...;
--smart-site-map-alarm-color: ...;
--smart-site-map-warning-color: ...;
--smart-site-map-land: ...;
--smart-site-map-tile-filter: ...;
--smart-site-map-edge: ...;
}
/* one instance */
#siteMap {
--smart-site-map-normal: ...;
}
Themes
Two ISA-101 themes ship with the package: smart.industrial.css and smart.industrial-dark.css. Load one after the base theme and set theme="industrial" or theme="industrial-dark" on the body element. The demo page switches between the three.
<link rel="stylesheet" href="node_modules/smart-industrial/source/styles/smart.default.css" /> <link rel="stylesheet" href="node_modules/smart-industrial/source/styles/smart.industrial-elements.css" /> <link rel="stylesheet" href="node_modules/smart-industrial/source/styles/smart.industrial.css" /> <body theme="industrial">