com.vaadin.flow.component.map.configuration.source.
Class XYZSource
All Implemented Interfaces:
Direct Known Subclasses:
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
Nested Classes -
Field Summary
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
Constructor Summary
Constructors -
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 the
x
,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
-