Class TileWMSSource
- 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.TileWMSSource
-
- All Implemented Interfaces:
Serializable
public class TileWMSSource extends TileImageSource
Source for loading tile data from WMS (Web Map Service) serversSee https://www.ogc.org/standards/wms
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTileWMSSource.Options
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description TileWMSSource(TileWMSSource.Options options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGutter()Size of the gutter around image tiles to ignore, in pixels.Map<String,Object>getParams()The WMS request parameters for requesting images from the WMS server.StringgetServerType()The type of WMS server.StringgetType()The unique type name of this class.-
Methods inherited from class com.vaadin.flow.component.map.configuration.source.TileImageSource
getCrossOrigin
-
Methods inherited from class com.vaadin.flow.component.map.configuration.source.UrlTileSource
getUrl, setUrl
-
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
-
TileWMSSource
public TileWMSSource(TileWMSSource.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
-
getGutter
public int getGutter()
Size of the gutter around image tiles to ignore, in pixels. The default value is0, which means no gutter will be used. By setting this to a non-zero value, the map will request images that are wider / taller than the tile size by a value of2 x gutter, but will ignore the gutter when drawing a tile. Using a gutter allows ignoring artifacts at the edges of tiles.This value can not be changed after constructing an instance, it can only be set initially by passing an options object to the constructor.
- Returns:
- the current gutter value, in pixels
-
getParams
public Map<String,Object> getParams()
The WMS request parameters for requesting images from the WMS server. At least theLAYERSparameter is required. By default,VERSIONis1.3.0, andSTYLESis"".WIDTH,HEIGHT,BBOX, andCRS/SRSwill be set dynamically.For individual parameters please refer to the documentation of the WMS server as well as the WMS specification.
This value can not be changed after constructing an instance, it can only be set initially by passing an options object to the constructor.
- Returns:
- the WMS parameters
-
getServerType
public String getServerType()
The type of WMS server.This value can not be changed after constructing an instance, it can only be set initially by passing an options object to the constructor.
- Returns:
- the type of WMS server
-
-