com.vaadin.flow.component.map.configuration.source.
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:
public class TileWMSSource extends TileImageSource
Source for loading tile data from WMS (Web Map Service) servers
See https://www.ogc.org/standards/wms
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TileWMSSource.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 Modifier and Type Method Description int
getGutter()
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.
String
getServerType()
The type of WMS server.
String
getType()
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:
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
-
getGutter
public int getGutter()
Size of the gutter around image tiles to ignore, in pixels. The default value is
0
, 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 the
LAYERS
parameter is required. By default,VERSION
is1.3.0
, andSTYLES
is""
.WIDTH
,HEIGHT
,BBOX
, andCRS
/SRS
will 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
-
-