com.vaadin.flow.component.map.configuration.source.
Class OSMSource
- java.lang.Object
-
- com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
-
- com.vaadin.flow.component.map.configuration.source.Source
-
- com.vaadin.flow.component.map.configuration.source.TileSource
-
- com.vaadin.flow.component.map.configuration.source.UrlTileSource
-
- com.vaadin.flow.component.map.configuration.source.TileImageSource
-
- com.vaadin.flow.component.map.configuration.source.XYZSource
-
- com.vaadin.flow.component.map.configuration.source.OSMSource
-
All Implemented Interfaces:
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:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OSMSource.Options
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description OSMSource()
OSMSource(OSMSource.Options options)
-
Method Summary
All Methods Modifier and Type Method Description String
getType()
The unique type name of this class.
boolean
isAttributionsCollapsible()
Determines whether attributions are collapsible.
-
Methods inherited from class com.vaadin.flow.component.map.configuration.source.XYZSource
getUrl, setUrl
-
Methods inherited from class com.vaadin.flow.component.map.configuration.source.TileImageSource
getCrossOrigin
-
Methods inherited from class com.vaadin.flow.component.map.configuration.source.TileSource
isOpaque
-
Methods inherited from class com.vaadin.flow.component.map.configuration.source.Source
getAttributions, getProjection, setAttributions
-
Methods inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
addChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
-
-
-
Constructor Detail
-
OSMSource
public OSMSource()
-
OSMSource
public OSMSource(OSMSource.Options options)
-
-
Method Detail
-
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.
-
isAttributionsCollapsible
public boolean isAttributionsCollapsible()
Determines whether attributions are collapsible. For
OSMSource
the default isfalse
, and this value can not be changed in the options.Overrides:
isAttributionsCollapsible
in classSource
Returns:
whether attributions are collapsible
-
-