This guide will cover the basic 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.
Info |
---|
This guide is written with the expectation the reader has a basic knowledge of CSS |
Framework & Structure
...
This section will cover the general components that make up the Maps UI, also, providing a deeper understanding of the IDs and classes that make up each of these sections allowing for fine control of UI via Stylesheets.
...
title | Map |
---|
Map
The maps section is the largest view, this is where the floor plan graphic will be rendered, this section allows for users to pan up, down, left and right, as well as zoom in and out.
...
Select the image to view a larger version.
Below is a list of the IDs and classes that can be used to modify this section
#map .today/.future_day (contains map & view controls, class dependant on day selected)
...
.leaflet-map-pane
.leaflet-pane .leaflet-overlay-pane
img .leaflet-image-layer (this is the map image)
.leaflet-pane .leaflet-marker-pane
.leaflet-marker-icon marker
.today_marker/.future_marker .pin .custom-space .free/.busy/.CheckIn/.CheckOut (Marker icon, use status class to customise colour for different states)
...
.leaflet-control-container
.leaflet-top .leaflet-left
.leaflet-control-zoom .leaflet-bar .leaflet-control
.leaflet-control-zoom-in (zoom in button)
.leaflet-control-zoom-out (zoom out button)
...
.floor-button-layer .closed/.open (class depends if #panel is open or closed)
.floor-buttons
.button .selected (each floor navigation button, selected indicates selected floor)
...
#panel .closed/.open (class depends if #panel is open or closed)
see Panel section below for more information
Expand | ||
---|---|---|
| ||
BannerThe banner is found across the top of the map, this displays information such as the location displayed, the current time and date as well as any filters that are being applied. Select the image to view a larger version.
|
Expand | ||
---|---|---|
| ||
MenuThe menu is the leftside slide-out element, this contains the location navigation options as well as filter options.
|
...
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.
Info |
---|
This guide is written with the expectation the reader has a basic knowledge of CSS or JSON |
Note |
---|
Maps Stylesheet uses a mix of CSS and JSON, the line |
...
Expand | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||
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.
|
...