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.HasRatioNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
Source.HasAttributions, Source.HasAttributionsCollapsible, Source.HasProjection, Source.HasSourceOptions, Source.HasWrapXNested 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, urlFields inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
attributions, attributionsCollapsible, id, projection, wrapXFields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetRatio()protected StringgetType()getUrl()voidsetAttributions(List<String> attributions) voidsetCrossOrigin(String crossOrigin) Sets the cross-origin attribute for loaded images.voidSets WMS request parameters.voidsetProjection(CRS projection) voidvoidsetServerType(ServerType serverType) Sets the type of the remote WMS server.voidSets 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, getId, getWrapX, setAttributionsCollapsible, setId, setWrapXMethods 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, setParent, unmarkDirtyInDepth 
- 
Constructor Details
- 
ImageWmsSource
public ImageWmsSource() 
 - 
 - 
Method Details
- 
getType
- Specified by:
 getTypein classMapObservableObject
 - 
getAttributions
- Specified by:
 getAttributionsin interfaceSource.HasAttributions- Overrides:
 getAttributionsin classSource- Returns:
 - the attributions of the source or 
nullif not set 
 - 
setAttributions
- Specified by:
 setAttributionsin interfaceSource.HasAttributions- Overrides:
 setAttributionsin classSource- Parameters:
 attributions- info about copyrights and licences
 - 
withAttributions
- Parameters:
 attributions- info about copyrights and licences- Returns:
 - current instance
 
 - 
getProjection
- Specified by:
 getProjectionin interfaceSource.HasProjection- Overrides:
 getProjectionin classSource- Returns:
 - projection or 
nullif not set 
 - 
setProjection
- Specified by:
 setProjectionin interfaceSource.HasProjection- Overrides:
 setProjectionin classSource- Parameters:
 projection- projection to set
 - 
withProjection
SeesetProjection(CRS).- Parameters:
 projection- projection to set- Returns:
 - current instance
 
 - 
getCrossOrigin
- Specified by:
 getCrossOriginin interfaceHasCrossOrigin- Overrides:
 getCrossOriginin classAbstractImageWmsSource- Returns:
 - cross-origin or 
nullif 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:
 setCrossOriginin interfaceHasCrossOrigin- Overrides:
 setCrossOriginin classAbstractImageWmsSource- Parameters:
 crossOrigin- cross-origin to set
 - 
withCrossOrigin
- Parameters:
 crossOrigin- cross-origin to set- Returns:
 - current instance
 
 - 
getServerType
- Specified by:
 getServerTypein interfaceHasServerType- Overrides:
 getServerTypein classAbstractImageWmsSource- Returns:
 - server type or 
nullif 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:
 setServerTypein interfaceHasServerType- Overrides:
 setServerTypein classAbstractImageWmsSource- Parameters:
 serverType- type of the remote server
 - 
withServerType
- Parameters:
 serverType- type of the remote server- Returns:
 - current instance
 
 - 
getParams
- Specified by:
 getParamsin interfaceHasParams- Overrides:
 getParamsin classAbstractImageWmsSource- Returns:
 - WMS request parameters or 
nullif 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:
 setParamsin interfaceHasParams- Overrides:
 setParamsin classAbstractImageWmsSource- Parameters:
 params- parameters to set
 - 
withParams
SeesetParams(Map).- Parameters:
 params- parameters to set- Returns:
 - current instance
 
 - 
getRatio
- Specified by:
 getRatioin interfaceAbstractImageWmsSource.HasRatio- Overrides:
 getRatioin classAbstractImageWmsSource- Returns:
 - ratio or 
nullif not set.nullvalue means that default value is used: '1.5' 
 - 
setRatio
- Specified by:
 setRatioin interfaceAbstractImageWmsSource.HasRatio- Overrides:
 setRatioin 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:
 getUrlin interfaceHasUrl- Overrides:
 getUrlin classAbstractImageWmsSource- Returns:
 - WMS URL or 
nullif 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:
 setUrlin interfaceHasUrl- Overrides:
 setUrlin classAbstractImageWmsSource- Parameters:
 url- url to set
 - 
withUrl
SeesetUrl(String).- Parameters:
 url- WMS URL to set- Returns:
 - current instance
 
 
 -