Appearance

Appearance

The appearance panel offers methods to tailor the visual style of both the map and UI.

The Primary color primaryColor will be applied on various elements such as the active state of the search field or the main popup action button, allowing you to personalize the map with your brand color.

Custom CSS

For extensive modifications, custom CSS can be added to further customize the map's appearance.
Below, you'll find some basic examples.

Custom CSS
/* changing container background color */
.mapplic-container { background-color: #f0ede7; }
 
/* removing border radius from tooltip */
.mapplic-tooltip { border-radius: 0; }
 
/* increasing font size of title in tooltips */
.mapplic-tooltip h4 { font-size: 24px; }
💡
Writing custom styles requires the understanding of CSS (Cascading Style Sheets), which falls outside the scope of this documentation.

Locations styles

Location styles enable advanced customization of markers or interactive SVG elements. While the color property can be used for basic styling, here you have the flexibility to define distinct colors for the base, hover, and active states, or style the strokes and label text.

You can assign a location style to a specific location using the style property.

PropertyKeyDescription
Classclass *Unique layer class, also used as a CSS class.
Fillbase-color
hover-color
active-color
Fill color of the base, hover and active states.
Strokebase-stroke
hover-stroke
active-stroke
Stroke (border) color of the base, hover and active states.
Stroke widthstroke-widthWidth of the stroke (all states).
Text colortext-colorColor of the label text.
MarkermarkerApply the specified style to the location's marker.
SVGsvgApply the specified style to the location's SVG element.

The style class will be added to the marker/element as CSS class, so it can also be used for custom styling. For example, if you wanted to make the stroke dashed on active state only, the following custom CSS could be used.

Custom CSS
.my-style-class.mapplic-active {
    stroke-dasharray: 2 2;
}