Class ImageWmsSource
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.source.Source
io.jmix.mapsflowui.kit.component.model.source.ImageSource
io.jmix.mapsflowui.kit.component.model.source.AbstractImageWmsSource
io.jmix.mapsflowui.component.model.source.ImageWmsSource
- All Implemented Interfaces:
AbstractImageWmsSource.HasImageWmsSourceOptions
,AbstractImageWmsSource.HasRatio
,HasCrossOrigin
,HasParams
,HasServerType
,HasUrl
,Source.HasAttributions
,Source.HasProjection
,Serializable
public class ImageWmsSource
extends AbstractImageWmsSource
implements AbstractImageWmsSource.HasImageWmsSourceOptions, Source.HasAttributions, Source.HasProjection
Source for WMS servers providing single, untiled images. It can be used in
ImageLayer
.
For more details see: ImageWMS docs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractImageWmsSource
AbstractImageWmsSource.HasImageWmsSourceOptions, AbstractImageWmsSource.HasRatio
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
Source.HasAttributions, Source.HasAttributionsCollapsible, Source.HasProjection, Source.HasSourceOptions, Source.HasWrapX
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent
-
Field Summary
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractImageWmsSource
crossOrigin, params, ratio, serverType, url
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
attributions, attributionsCollapsible, projection, wrapX
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRatio()
protected String
getType()
getUrl()
void
setAttributions
(List<String> attributions) void
setCrossOrigin
(String crossOrigin) Sets the cross-origin attribute for loaded images.void
Sets WMS request parameters.void
setProjection
(CRS projection) void
void
setServerType
(ServerType serverType) Sets the type of the remote WMS server.void
Sets WMS service URL.withAttributions
(List<String> attributions) withCrossOrigin
(String crossOrigin) withParams
(Map<String, Object> params) SeesetParams(Map)
.withProjection
(CRS projection) SeesetProjection(CRS)
.SeesetRatio(Double)
.withServerType
(ServerType serverType) SeesetUrl(String)
.Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
getAttributionsCollapsible, getWrapX, setAttributionsCollapsible, setWrapX
Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, unmarkDirtyInDepth
-
Constructor Details
-
ImageWmsSource
public ImageWmsSource()
-
-
Method Details
-
getType
- Specified by:
getType
in classMapObservableObject
-
getAttributions
- Specified by:
getAttributions
in interfaceSource.HasAttributions
- Overrides:
getAttributions
in classSource
- Returns:
- the attributions of the source or
null
if not set
-
setAttributions
- Specified by:
setAttributions
in interfaceSource.HasAttributions
- Overrides:
setAttributions
in classSource
- Parameters:
attributions
- info about copyrights and licences
-
withAttributions
- Parameters:
attributions
- info about copyrights and licences- Returns:
- current instance
-
getProjection
- Specified by:
getProjection
in interfaceSource.HasProjection
- Overrides:
getProjection
in classSource
- Returns:
- projection or
null
if not set
-
setProjection
- Specified by:
setProjection
in interfaceSource.HasProjection
- Overrides:
setProjection
in classSource
- Parameters:
projection
- projection to set
-
withProjection
SeesetProjection(CRS)
.- Parameters:
projection
- projection to set- Returns:
- current instance
-
getCrossOrigin
- Specified by:
getCrossOrigin
in interfaceHasCrossOrigin
- Overrides:
getCrossOrigin
in classAbstractImageWmsSource
- Returns:
- cross-origin or
null
if not set
-
setCrossOrigin
Sets the cross-origin attribute for loaded images.Note, cross-origin is set only at creation time and cannot be changed at runtime.
For more details see: ImageWMS docs
- Specified by:
setCrossOrigin
in interfaceHasCrossOrigin
- Overrides:
setCrossOrigin
in classAbstractImageWmsSource
- Parameters:
crossOrigin
- cross-origin to set
-
withCrossOrigin
- Parameters:
crossOrigin
- cross-origin to set- Returns:
- current instance
-
getServerType
- Specified by:
getServerType
in interfaceHasServerType
- Overrides:
getServerType
in classAbstractImageWmsSource
- Returns:
- server type or
null
if not set
-
setServerType
Sets the type of the remote WMS server.Note, serverType attribute is set only at creation time and cannot be changed at runtime.
For more details see: ImageWMS docs
- Specified by:
setServerType
in interfaceHasServerType
- Overrides:
setServerType
in classAbstractImageWmsSource
- Parameters:
serverType
- type of the remote server
-
withServerType
- Parameters:
serverType
- type of the remote server- Returns:
- current instance
-
getParams
- Specified by:
getParams
in interfaceHasParams
- Overrides:
getParams
in classAbstractImageWmsSource
- Returns:
- WMS request parameters or
null
if not set
-
setParams
Sets WMS request parameters. At least a "LAYERS" parameter is required.- "STYLES" parameter is '' by default;
- "VERSION" is 1.3.0 by default;
- "WIDTH", "HEIGHT", "BBOX" and "CRS" ("SRS" for WMS version < 1.3.0) will be set dynamically
Note, params attribute is set only at creation time and cannot be changed at runtime.
For more details see: ImageWMS docs
- Specified by:
setParams
in interfaceHasParams
- Overrides:
setParams
in classAbstractImageWmsSource
- Parameters:
params
- parameters to set
-
withParams
SeesetParams(Map)
.- Parameters:
params
- parameters to set- Returns:
- current instance
-
getRatio
- Specified by:
getRatio
in interfaceAbstractImageWmsSource.HasRatio
- Overrides:
getRatio
in classAbstractImageWmsSource
- Returns:
- ratio or
null
if not set.null
value means that default value is used: '1.5
'
-
setRatio
- Specified by:
setRatio
in interfaceAbstractImageWmsSource.HasRatio
- Overrides:
setRatio
in classAbstractImageWmsSource
- Parameters:
ratio
- ratio to set
-
withRatio
SeesetRatio(Double)
.- Parameters:
ratio
- ratio to set- Returns:
- current instance
-
getUrl
Description copied from class:AbstractImageWmsSource
- Specified by:
getUrl
in interfaceHasUrl
- Overrides:
getUrl
in classAbstractImageWmsSource
- Returns:
- WMS URL or
null
if not set
-
setUrl
Sets WMS service URL.Note, URL attribute is set only at creation time and cannot be changed at runtime.
For more details see: ImageWMS docs
- Specified by:
setUrl
in interfaceHasUrl
- Overrides:
setUrl
in classAbstractImageWmsSource
- Parameters:
url
- url to set
-
withUrl
SeesetUrl(String)
.- Parameters:
url
- WMS URL to set- Returns:
- current instance
-