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
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 -
Field Summary
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Size of the gutter around image tiles to ignore, in pixels.The WMS request parameters for requesting images from the WMS server.The type of WMS server.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, addNullableChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
Constructor Details
-
TileWMSSource
-
-
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
-
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
The WMS request parameters for requesting images from the WMS server. At least theLAYERS
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
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
-