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
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:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
Constructor Summary
-
Method Summary
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, addNullableChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
Constructor Details
-
XYZSource
public XYZSource() -
XYZSource
-
-
Method Details
-
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.- Specified by:
getType
in classAbstractConfigurationObject
-
getUrl
The URL template in XYZ format (see also Slippy map tilenames) used to load individual image tiles. The URL must include thex
,y
or-y
, andz
placeholders, wherex
andy
identify the tile in the tile grid for the zoom levelz
.Example:
https://a.tile.openstreetmap.org/{z}/{x}/{y}.png
- Overrides:
getUrl
in classUrlTileSource
- Returns:
- the URL template
-
setUrl
Sets the URL template in XYZ format.- Overrides:
setUrl
in classUrlTileSource
- Parameters:
url
- the new URL template
-