Class TileWmsSource
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.TileSource
io.jmix.mapsflowui.kit.component.model.source.UrlTileSource
io.jmix.mapsflowui.kit.component.model.source.TileImageSource
io.jmix.mapsflowui.kit.component.model.source.AbstractTileWmsSource
io.jmix.mapsflowui.component.model.source.TileWmsSource
- All Implemented Interfaces:
AbstractTileWmsSource.HasTileWmsSourceOptions,HasCrossOrigin,HasGutter,HasParams,HasServerType,HasUrl,Source.HasAttributions,Source.HasAttributionsCollapsible,Source.HasProjection,Source.HasSourceOptions,Source.HasWrapX,TileSource.HasCacheSize,UrlTileSource.HasUrls,UrlTileSource.HasUrlTileSourceOptions,Serializable
public class TileWmsSource
extends AbstractTileWmsSource
implements Source.HasSourceOptions, AbstractTileWmsSource.HasTileWmsSourceOptions, UrlTileSource.HasUrlTileSourceOptions, TileSource.HasCacheSize, HasCrossOrigin
Source for tile data from WMS servers. It can be used in
TileLayer.
For more details see: TileWMS docs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractTileWmsSource
AbstractTileWmsSource.HasTileWmsSourceOptionsNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.UrlTileSource
UrlTileSource.HasUrls, UrlTileSource.HasUrlTileSourceOptionsNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.TileSource
TileSource.HasCacheSize, TileSource.HasOpaque, TileSource.HasTileSourceOptionsNested 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.AbstractTileWmsSource
gutter, params, serverTypeFields inherited from class io.jmix.mapsflowui.kit.component.model.source.TileImageSource
crossOriginFields inherited from class io.jmix.mapsflowui.kit.component.model.source.UrlTileSource
url, urlsFields inherited from class io.jmix.mapsflowui.kit.component.model.source.TileSource
cacheSize, opaqueFields 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 TypeMethodDescriptionprotected StringgetType()getUrl()getUrls()getWrapX()voidsetAttributions(List<String> attributions) voidsetAttributionsCollapsible(Boolean collapsible) voidsetCacheSize(Integer cacheSize) voidsetCrossOrigin(String crossOrigin) Sets the cross-origin attribute for loaded images.voidSets the size in pixels of the gutter around image tiles to ignore.voidSets WMS request parameters.voidsetProjection(CRS projection) voidsetServerType(ServerType serverType) Sets the type of the remote WMS server.voidSets the WMS URL.voidSets WMS service urls.voidSets whether the source should be looped along the X coordinate.withAttributions(List<String> attributions) withAttributionsCollapsible(Boolean collapsible) withCacheSize(Integer cacheSize) withCrossOrigin(String crossOrigin) withGutter(Double gutter) SeesetGutter(Double).withParams(Map<String, Object> params) SeesetParams(Map).withProjection(CRS projection) SeesetProjection(CRS).withServerType(ServerType serverType) SeesetUrl(String).SeesetUrls(List).SeesetWrapX(Boolean).Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.TileSource
getOpaque, setOpaqueMethods 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
-
TileWmsSource
public TileWmsSource()
-
-
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
-
getAttributionsCollapsible
- Specified by:
getAttributionsCollapsiblein interfaceSource.HasAttributionsCollapsible- Overrides:
getAttributionsCollapsiblein classSource- Returns:
- whether attributions should always be visible or can be hidden by info icon,
nullvalue means that default value is used:true
-
setAttributionsCollapsible
- Specified by:
setAttributionsCollapsiblein interfaceSource.HasAttributionsCollapsible- Overrides:
setAttributionsCollapsiblein classSource- Parameters:
collapsible- whether attributions should always be visible
-
withAttributionsCollapsible
- Parameters:
collapsible- whether attributions should always be visible- 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
-
getWrapX
- Specified by:
getWrapXin interfaceSource.HasWrapX- Overrides:
getWrapXin classSource- Returns:
- whether the source should be looped along the X coordinate or
nullif not set
-
setWrapX
Sets whether the source should be looped along the X coordinate. The default value forSourceistrue.Note, wrapX attribute is set only at creation time and cannot be changed at runtime. For more details see: TileWMS docs
- Specified by:
setWrapXin interfaceSource.HasWrapX- Overrides:
setWrapXin classSource- Parameters:
wrapX- whether the source should be looped along the X coordinate
-
withWrapX
SeesetWrapX(Boolean).- Parameters:
wrapX- whether the source should be looped along the X coordinate- Returns:
- current instance
-
getParams
- Specified by:
getParamsin interfaceHasParams- Overrides:
getParamsin classAbstractTileWmsSource- 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 classAbstractTileWmsSource- Parameters:
params- parameters to set
-
withParams
SeesetParams(Map).- Parameters:
params- parameters to set- Returns:
- current instance
-
getGutter
- Specified by:
getGutterin interfaceHasGutter- Overrides:
getGutterin classAbstractTileWmsSource- Returns:
- gutter or
nullif not set
-
setGutter
Sets the size in pixels of the gutter around image tiles to ignore. By setting this property to a non-zero value, images will be requested that are wider and taller than the tile size by a value of 2 x gutter. Using a non-zero value allows artifacts of rendering at tile edges to be ignored.The default value is
0.Note, gutter attribute is set only at creation time and cannot be changed at runtime.
For more details see: TileWMS docs
- Specified by:
setGutterin interfaceHasGutter- Overrides:
setGutterin classAbstractTileWmsSource- Parameters:
gutter- gutter to set
-
withGutter
SeesetGutter(Double).- Parameters:
gutter- gutter to set- Returns:
- current instance
-
getServerType
- Specified by:
getServerTypein interfaceHasServerType- Overrides:
getServerTypein classAbstractTileWmsSource- 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: TileWMS docs
- Specified by:
setServerTypein interfaceHasServerType- Overrides:
setServerTypein classAbstractTileWmsSource- Parameters:
serverType- type of the remote server
-
withServerType
- Parameters:
serverType- type of the remote server- Returns:
- current instance
-
getCrossOrigin
- Specified by:
getCrossOriginin interfaceHasCrossOrigin- Overrides:
getCrossOriginin classTileImageSource- 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: TileWMS docs
- Specified by:
setCrossOriginin interfaceHasCrossOrigin- Overrides:
setCrossOriginin classTileImageSource- Parameters:
crossOrigin- crossOrigin to set
-
withCrossOrigin
- Parameters:
crossOrigin- crossOrigin to set- Returns:
- current instance
-
getCacheSize
- Specified by:
getCacheSizein interfaceTileSource.HasCacheSize- Overrides:
getCacheSizein classTileSource- Returns:
- tile cache size or
nullif not set
-
setCacheSize
- Specified by:
setCacheSizein interfaceTileSource.HasCacheSize- Overrides:
setCacheSizein classTileSource- Parameters:
cacheSize- the cache size to set
-
withCacheSize
- Parameters:
cacheSize- the cache size to set- Returns:
- current instance
-
getUrl
Description copied from class:UrlTileSource- Specified by:
getUrlin interfaceHasUrl- Overrides:
getUrlin classUrlTileSource- Returns:
- WMS URL or
nullif not set
-
setUrl
Sets the WMS URL.For more details see: setUrl docs
- Specified by:
setUrlin interfaceHasUrl- Overrides:
setUrlin classUrlTileSource- Parameters:
url- WMS URL to set
-
withUrl
SeesetUrl(String).- Parameters:
url- WMS URL to set- Returns:
- current instance
-
getUrls
Description copied from class:UrlTileSource- Specified by:
getUrlsin interfaceUrlTileSource.HasUrls- Overrides:
getUrlsin classUrlTileSource- Returns:
- URLs to use for requests or
nullif not set
-
setUrls
Sets WMS service urls. Use this instead ofsetUrl(String)when the WMS supports multiple URLs for GetMap requests. For more details see: setUrls docs- Specified by:
setUrlsin interfaceUrlTileSource.HasUrls- Overrides:
setUrlsin classUrlTileSource- Parameters:
urls- URLs to use for requests
-
withUrls
SeesetUrls(List).- Parameters:
urls- URLs to use for requests- Returns:
- current instance
-