Class XYZSource
- 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
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OSMSource
public class XYZSource extends TileImageSource
Source for loading tiled images from a map service using the Slippy Map tile numbering scheme, also known as XYZ format.This is commonly used by OpenStreetMap, as well as other services who have adopted the OSM tile numbering scheme.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXYZSource.Options
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description XYZSource()XYZSource(XYZSource.Options options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()The unique type name of this class.StringgetUrl()The URL template in XYZ format (see also Slippy map tilenames) used to load individual image tiles.voidsetUrl(String url)Sets the URL template in XYZ format.-
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, isAttributionsCollapsible, 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
-
XYZSource
public XYZSource()
-
XYZSource
public XYZSource(XYZSource.Options options)
-
-
Method Detail
-
getType
public String getType()
Description copied from class:AbstractConfigurationObjectThe unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.- Specified by:
getTypein classAbstractConfigurationObject
-
getUrl
public String getUrl()
The URL template in XYZ format (see also Slippy map tilenames) used to load individual image tiles. The URL must include thex,yor-y, andzplaceholders, wherexandyidentify the tile in the tile grid for the zoom levelz.Example:
https://a.tile.openstreetmap.org/{z}/{x}/{y}.png- Overrides:
getUrlin classUrlTileSource- Returns:
- the URL template
-
setUrl
public void setUrl(String url)
Sets the URL template in XYZ format.- Overrides:
setUrlin classUrlTileSource- Parameters:
url- the new URL template
-
-