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.HasTileWmsSourceOptions
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.UrlTileSource
UrlTileSource.HasUrls, UrlTileSource.HasUrlTileSourceOptions
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.TileSource
TileSource.HasCacheSize, TileSource.HasOpaque, TileSource.HasTileSourceOptions
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.AbstractTileWmsSource
gutter, params, serverType
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.TileImageSource
crossOrigin
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.UrlTileSource
url, urls
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.TileSource
cacheSize, opaque
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
attributions, attributionsCollapsible, id, projection, wrapX
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getType()
getUrl()
getUrls()
getWrapX()
void
setAttributions
(List<String> attributions) void
setAttributionsCollapsible
(Boolean collapsible) void
setCacheSize
(Integer cacheSize) void
setCrossOrigin
(String crossOrigin) Sets the cross-origin attribute for loaded images.void
Sets the size in pixels of the gutter around image tiles to ignore.void
Sets WMS request parameters.void
setProjection
(CRS projection) void
setServerType
(ServerType serverType) Sets the type of the remote WMS server.void
Sets the WMS URL.void
Sets WMS service urls.void
Sets 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, setOpaque
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, setParent, unmarkDirtyInDepth
-
Constructor Details
-
TileWmsSource
public TileWmsSource()
-
-
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
-
getAttributionsCollapsible
- Specified by:
getAttributionsCollapsible
in interfaceSource.HasAttributionsCollapsible
- Overrides:
getAttributionsCollapsible
in classSource
- Returns:
- whether attributions should always be visible or can be hidden by info icon,
null
value means that default value is used:true
-
setAttributionsCollapsible
- Specified by:
setAttributionsCollapsible
in interfaceSource.HasAttributionsCollapsible
- Overrides:
setAttributionsCollapsible
in classSource
- Parameters:
collapsible
- whether attributions should always be visible
-
withAttributionsCollapsible
- Parameters:
collapsible
- whether attributions should always be visible- 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
-
getWrapX
- Specified by:
getWrapX
in interfaceSource.HasWrapX
- Overrides:
getWrapX
in classSource
- Returns:
- whether the source should be looped along the X coordinate or
null
if not set
-
setWrapX
Sets whether the source should be looped along the X coordinate. The default value forSource
istrue
.Note, wrapX attribute is set only at creation time and cannot be changed at runtime. For more details see: TileWMS docs
- Specified by:
setWrapX
in interfaceSource.HasWrapX
- Overrides:
setWrapX
in 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:
getParams
in interfaceHasParams
- Overrides:
getParams
in classAbstractTileWmsSource
- 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 classAbstractTileWmsSource
- Parameters:
params
- parameters to set
-
withParams
SeesetParams(Map)
.- Parameters:
params
- parameters to set- Returns:
- current instance
-
getGutter
- Specified by:
getGutter
in interfaceHasGutter
- Overrides:
getGutter
in classAbstractTileWmsSource
- Returns:
- gutter or
null
if 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:
setGutter
in interfaceHasGutter
- Overrides:
setGutter
in classAbstractTileWmsSource
- Parameters:
gutter
- gutter to set
-
withGutter
SeesetGutter(Double)
.- Parameters:
gutter
- gutter to set- Returns:
- current instance
-
getServerType
- Specified by:
getServerType
in interfaceHasServerType
- Overrides:
getServerType
in classAbstractTileWmsSource
- 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: TileWMS docs
- Specified by:
setServerType
in interfaceHasServerType
- Overrides:
setServerType
in classAbstractTileWmsSource
- Parameters:
serverType
- type of the remote server
-
withServerType
- Parameters:
serverType
- type of the remote server- Returns:
- current instance
-
getCrossOrigin
- Specified by:
getCrossOrigin
in interfaceHasCrossOrigin
- Overrides:
getCrossOrigin
in classTileImageSource
- 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: TileWMS docs
- Specified by:
setCrossOrigin
in interfaceHasCrossOrigin
- Overrides:
setCrossOrigin
in classTileImageSource
- Parameters:
crossOrigin
- crossOrigin to set
-
withCrossOrigin
- Parameters:
crossOrigin
- crossOrigin to set- Returns:
- current instance
-
getCacheSize
- Specified by:
getCacheSize
in interfaceTileSource.HasCacheSize
- Overrides:
getCacheSize
in classTileSource
- Returns:
- tile cache size or
null
if not set
-
setCacheSize
- Specified by:
setCacheSize
in interfaceTileSource.HasCacheSize
- Overrides:
setCacheSize
in 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:
getUrl
in interfaceHasUrl
- Overrides:
getUrl
in classUrlTileSource
- Returns:
- WMS URL or
null
if not set
-
setUrl
Sets the WMS URL.For more details see: setUrl docs
- Specified by:
setUrl
in interfaceHasUrl
- Overrides:
setUrl
in 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:
getUrls
in interfaceUrlTileSource.HasUrls
- Overrides:
getUrls
in classUrlTileSource
- Returns:
- URLs to use for requests or
null
if 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:
setUrls
in interfaceUrlTileSource.HasUrls
- Overrides:
setUrls
in classUrlTileSource
- Parameters:
urls
- URLs to use for requests
-
withUrls
SeesetUrls(List)
.- Parameters:
urls
- URLs to use for requests- Returns:
- current instance
-