Customizing GIPS
GIPS is customized from GIPS Desktop, almost entirely through the Settings dialog opened by the gear icon above the
map. Press F5 in GIPS Desktop to test a change. The few remaining files are in the configuration directory —
Configuration Files... in GIPS Desktop opens it.
The Settings dialog
Controls are grouped into panes reached from a list on the left. A pane whose fields are invalid is marked in the list, and Save is refused until they are fixed.
| Group | Pane | What it holds |
|---|---|---|
| Browser preferences | Map & display | Pan the map to the selected item, display the constraint label upon selection, format bus numbers with commas, display Dfax as a percentage. |
| Browser preferences | Thresholds & filters | Hide constraints with loading below a percentage, Ignore POI impact below a percentage, and the TrLim floor. Every threshold is off by default. |
| Browser preferences | Theme | Light, Dark, or System. See Theme. |
| Browser preferences | Previews | GIPS Desktop only. The ports the GIPS Lite and Pro previews listen on, for this installation only. |
| Deployment configuration | Layers | For each of POI, Constraint and Harmer: the legend title, the color scale, and the table columns. See Ranges & Legend and Grids & Columns. |
| Deployment configuration | Data layers | Import and maintain your own data layers. |
| Deployment configuration | Branding & disclaimer | The company name shown in the footer, and the disclaimer GIPS Lite and Pro show at startup. |
| Deployment configuration | Layout | The initial width and height of the map pane, each 50–80% of the window. See Layout. |
| Deployment configuration | Map limits | The deepest zoom level available, 1–19. |
| Deployment configuration | Tour | The guided tour. |
Browser preferences are saved in the browser's local storage, so each GIPS Lite and Pro user keeps their own; Previews
is the one that appears only in GIPS Desktop, since only Desktop can serve a preview. The deployment configuration
group exists only in GIPS Desktop, and is written to configuration.json and carried into every export.
Theme
The Theme pane offers Light, Dark and System, the last following the operating system's own setting and reacting
to a change in it while GIPS is running. Everything follows the choice: the controls, the tables, the header logo, and
the map — which draws a light street style in Light and a muted, dark one in Dark.
GIPS Desktop writes the choice to the theme property of configuration.json, which is the theme GIPS Lite and Pro come
up in each time they are opened. A configuration.json without the property comes up in System.
Methodology
An optional Methodology panel, opened by a tab on the right edge of the window, holds whatever you want to say about
how the numbers were produced. GIPS Desktop edits it in place through a rich-text editor — bold, italic, headings, lists
and links — and stores it in the methodology property of configuration.json. The HTML is sanitised before it is shown
and links open in a new tab.
The tab appears in GIPS Lite and Pro only when there is content to read; in GIPS Desktop it is always there, so that there is somewhere to write it.
Disclaimer
The Disclaimer field in Branding & disclaimer controls the dialog GIPS Lite and Pro show at startup. Each line of the
field becomes one paragraph, so a blank line becomes an empty paragraph. Clearing the field drops the disclaimer
property from configuration.json altogether, and Lite and Pro start with no dialog.
GIPS Desktop does not show the disclaimer itself, so a Preview button beside the field opens the dialog exactly as those users will see it.
Legend titles
Each of the POI, Constraint and Harmer layers carries a legend title, set in the Layers pane. The constraint and harmer
titles are the constraintLegendTitle and harmerLegendTitle properties of configuration.json; when either is absent,
that section of the legend reads Constraints (kV) or Harmer Dfax (%). None of the titles may be left blank. GIPS
Lite and Pro honour the values.
Layout
Set in GIPS Desktop; GIPS Lite and Pro honor it. Before v4.5.0 the layout was fixed.
The Layout pane sets how much of the window the map takes when GIPS opens, as a Map width and a Map height in
percent, each a whole number from 50 to 80. The POI table takes the rest of the width, and the tables below the map —
Constraints, Harmers, and a data layer when one is configured — share the rest of the height equally.
The sizes are written to the mapPane property of configuration.json, so GIPS Lite and Pro open the same way:
{
"mapPane": { "width": 70, "height": 60 }
}
They are initial sizes only; users can still drag every divider afterwards. A configuration.json without the property
opens at 65% wide and 50% high, the layout GIPS has always opened with, and a missing or out-of-range value falls back
to its own default.
Map limits
Max zoom in the Map limits pane is the deepest zoom level available, 1–19 (default 19), written to the maxZoom
property of configuration.json. GIPS Lite and Pro honor it, so readers cannot zoom past the detail your data
supports; GIPS Desktop itself is not limited by it.
Other configuration properties
A few properties have no field of their own and are edited in configuration.json directly:
dfaxAsPercent—truedisplays Dfax as a percentage rather than a decimal in the Constraints and Harmers tables; it is the property behind theDisplay Dfax as %control.contingencyBaseCaseAlias— replaces the wordsBase Casein the Constraints table's Contingency column with a name of your own.logoFile— see Branding files.
configuration-schema.json, beside configuration.json, lists every property with a description.
Branding files
A few things are still files rather than settings:
- Favicon — replace the
favicon.pngfile in the root with your own. - Page title — replace the text between the
<title>and</title>tags inindex.html. - Header — composed of three elements, left to right: a logo, the words "Point of interconnection heatmap", and the help icon (a question mark).
- Company logo — replace the
header-icon-logo.pngfile, or supplyheader-icon-logo-light.pngandheader-icon-logo-dark.pngfor a logo that does not read well against both themes. AlogoFilenamed inconfiguration.jsonstill wins, and GIPS falls back toheader-icon-logo.pngand then to its own logo, so a missing file shows a logo rather than a broken image. - Help icon — replace the
header-icon-help.pngfile. - Footer — mostly hard-coded, except the company name: the
Company namefield inBranding & disclaimer, or thecompanyNameproperty inconfiguration.json.