Class ImageWMSSource
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.ImageSource
com.vaadin.flow.component.map.configuration.source.ImageWMSSource
- All Implemented Interfaces:
Serializable
Source for WMS servers providing single, untiled images
- 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 TypeMethodDescriptionThecrossOriginattribute for loaded images.The WMS request parameters for requesting images from the WMS server.doublegetRatio()The ratio for the size of requested images compared to the map's viewport.The type of WMS server.getType()The unique type name of this class.getUrl()The WMS service URLvoidSets the WMS service URLMethods inherited from class com.vaadin.flow.component.map.configuration.source.Source
getAttributions, getProjection, isAttributionsCollapsible, setAttributionsMethods 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
-
ImageWMSSource
-
-
Method Details
-
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
-
getUrl
The WMS service URL- Returns:
- the current URL
-
setUrl
Sets the WMS service URL- Parameters:
url- the new URL
-
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
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
-
getCrossOrigin
ThecrossOriginattribute for loaded images.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 crossOrigin attribute used for loaded images
-
getRatio
public double getRatio()The ratio for the size of requested images compared to the map's viewport. Ratio1means image requests are the size of the viewport, a ratio of2means twice the size of the viewport, and so on. Default is {code 1.5}.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 ratio
-