You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.map.configuration.

Class Feature

    • Constructor Detail

      • Feature

        public Feature()
    • Method Detail

      • getGeometry

        public SimpleGeometry getGeometry()

        The geometry representing the feature, for example a Point or a polygon.

        Returns:

        the current geometry

      • setGeometry

        public void setGeometry​(SimpleGeometry geometry)

        Sets the geometry representing the feature.

        Parameters:

        geometry - the new geometry, not null

      • getStyle

        public Style getStyle()

        The Style defines how the feature should be visually displayed.

        Returns:

        the current style

      • setStyle

        public void setStyle​(Style style)

        Sets the style that defines how the feature should be visually displayed.

        Parameters:

        style - the new style, not null