com.vaadin.flow.component.map.configuration.source.

All Implemented Interfaces:

Serializable

public class OSMSource extends XYZSource

Map source for loading tiled images from an OpenStreetMap service. The source will use the official OpenStreetMap service by default. A custom URL can be configured to load data from a different service.

See Also:

  • Constructor Details

    • OSMSource

      public OSMSource()
    • OSMSource

      public OSMSource(OSMSource.Options options)
  • Method Details

    • getType

      public String getType()

      Description copied from class: AbstractConfigurationObject

      The unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.

      Overrides:

      getType in class XYZSource

    • isAttributionsCollapsible

      public boolean isAttributionsCollapsible()

      Determines whether attributions are collapsible. For OSMSource the default is false, and this value can not be changed in the options.

      Overrides:

      isAttributionsCollapsible in class Source

      Returns:

      whether attributions are collapsible