This guide will cover the basics for customising aspects of the Maps UI.
The style rules for maps are similar to the Kiosk in that they work slightly differently to the room screen, with the room screen the assigned Stylesheet is the only design rules applied to the UI.
For Maps, however, the Stylesheet is used to modify the default style, this means that the stylesheet can have no properties and the Map will display its default style, this allows new rules to be added that will overwrite the default.
This guide is written with the expectation the reader has a basic knowledge of CSS or JSON |
Maps Stylesheet uses a mix of CSS and JSON, the line |
Custom Marker iconsIn this example, you’ll be shown how to modify the Maps Stylesheet to achieve customised marker icon.
Firstly, we will modify the .marker .pin element, this is controlling the drop shape of the marker. ![]()
Next, we will need to adjust the position of the marker, as we no longer have the point, we’ll move the marker down slightly, this will need to be adjusted for both the current day view as well as future if being used.
The next step is to remove the white background in the centre and to change the icon colour to allow it to be seen against the colour background. ![]()
The final step is to adjust the position of the text popup that appears above the marker icon. ![]()
Below is the full CSS for customising the marker icons, this can be copied into the existing Maps Stylesheet.
|
Dark themeIn this example, you’ll be shown how to modify the Maps Stylesheet to achieve a Dark mode, these images also include the custom marker icon modification (found above). ![]()
The full CSS for this customisation can be found at the bottom of this section without comments. Background & Text Colours![]() For this customisation, we can group all the elements that we want to have the same background and text colour, this saves some time and allows the Stylesheet to be a little smaller.
This change on its own gets us almost to the stage we want. The next step is to remove the light grey bar that is running down the right side panel.
Now we will adjust the dark colour for the selected button.
Finally, we will adjust the booking popup input fields to have a white border and text.
Full CSS for Dark Mode
|
Custom Text ChangesWith Maps some of the text values can be changed using the Stylesheet. /** LINE REQUIRED - CSS BELOW **/ Below is an example of the default value found in the Stylesheet.
In this example we will modify the Booking screen text values, as shown below.
The section that we’ll need to modify is “book” this controls the values for the booking popup screen.
Below is the modified JSON, this section can be copied and pasted in replacement of the existing “book” values, if this section does not currently exist in the Stylesheet it can be added.
|