Docs

Documentation versions (currently viewingVaadin 25 (prerelease))

Map Styling

Styling API reference for the Map component.

Style Variants

Map supports the following style variants:

Variant Description Supported by

no-border

Removes border around the Map component

Aura, Lumo

Source code
MapNoBorder.java

Style Properties

The following style properties can be used in CSS stylesheets to customize the appearance of this component.

To apply values to these properties globally in your application UI, place them in a CSS block using the html {…​} selector. See Component Style Properties for more information on style properties.

Property Supported by

--vaadin-map-border-color

Aura, Lumo

--vaadin-map-border-radius

Aura, Lumo

--vaadin-map-control-size

Aura, Lumo

--vaadin-map-controls-inset

Aura, Lumo

--vaadin-map-icon-attribution-collapse

Aura, Lumo

--vaadin-map-icon-attribution-expand

Aura, Lumo

--vaadin-map-icon-close

Aura, Lumo

--vaadin-map-icon-compass

Aura, Lumo

--vaadin-map-icon-fullscreen

Aura, Lumo

--vaadin-map-icon-overview-map-collapse

Aura, Lumo

--vaadin-map-icon-overview-map-expand

Aura, Lumo

--vaadin-map-icon-zoom-in

Aura, Lumo

--vaadin-map-icon-zoom-out

Aura, Lumo

CSS Selectors

The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.

Root element

vaadin-map

States

Focused

vaadin-map[focused]

Keyboard Focused

vaadin-map[focus-ring]