com.vaadin.flow.component.map.configuration.source.
Class ImageWMSSource
All Implemented Interfaces:
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 TypeMethodDescriptionThe
crossOrigin
attribute for loaded images.The WMS request parameters for requesting images from the WMS server.
double
getRatio()
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 URL
void
Sets the WMS service URL
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
-
ImageWMSSource
-
-
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 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 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
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
The
crossOrigin
attribute 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. Ratio
1
means image requests are the size of the viewport, a ratio of2
means 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
-