Class TLcdWMSStyledNamedLayerWrapper
When you have decoded a WMS model through TLcdOGCWMSProxyModelDecoder, the
ALcdWMSProxy object inside the model is used to configure a list of
WMS layers and corresponding styles to be requested. To register a WMS layer in this list,
a TLcdWMSStyledNamedLayerWrapper has to be created and supplied to the method
ALcdWMSProxy.addStyledNamedLayer(TLcdWMSStyledNamedLayerWrapper).
The ALcdWMSProxy object uses this information to generate the LAYERS
and STYLES parameters in GetMap or GetFeatureInfo requests
([WMS 1.1.1], pages 32-34).
This class holds a reference to the named WMS layer that needs to retrieved,
represented by a ALcdWMSNamedLayer,
and optionally the named WMS layer style that to be used for that layer,
represented by a ALcdWMSNamedLayerStyle.
Additionally, the visibility and ability to query the WMS layer in the resulting view can be
configured through setVisible(boolean) and setQueryable(boolean).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdWMSStyledNamedLayerWrapper(ALcdWMSNamedLayer aNamedLayer) Constructs aTLcdWMSStyledNamedLayerWrapperfor aALcdWMSNamedLayerwith the default style.TLcdWMSStyledNamedLayerWrapper(ALcdWMSNamedLayer aNamedLayer, ALcdWMSNamedLayerStyle aNamedLayerStyle) Constructs aTLcdWMSStyledNamedLayerWrapperfor aALcdWMSNamedLayerwith a given style. -
Method Summary
Modifier and TypeMethodDescriptionReturns the named layer of thisTLcdWMSStyledNamedLayerWrapper.Returns the named layer style of thisTLcdWMSStyledNamedLayerWrapper.booleanReturns if this layer is in a queryable state.booleanReturns if this layer is in a visible state.voidsetNamedLayerStyle(ALcdWMSNamedLayerStyle aNamedLayerStyle) Sets the new named layer style to use for the corresponding named layer.voidsetQueryable(boolean aQueryable) Sets if this layer should be queryable or not.voidsetVisible(boolean aVisible) Sets the visibility of this layer.
-
Constructor Details
-
TLcdWMSStyledNamedLayerWrapper
Constructs aTLcdWMSStyledNamedLayerWrapperfor aALcdWMSNamedLayerwith the default style.- Parameters:
aNamedLayer- the named layer.
-
TLcdWMSStyledNamedLayerWrapper
public TLcdWMSStyledNamedLayerWrapper(ALcdWMSNamedLayer aNamedLayer, ALcdWMSNamedLayerStyle aNamedLayerStyle) Constructs aTLcdWMSStyledNamedLayerWrapperfor aALcdWMSNamedLayerwith a given style.- Parameters:
aNamedLayer- the named layer.aNamedLayerStyle- the named layer style.
-
-
Method Details
-
getNamedLayer
Returns the named layer of thisTLcdWMSStyledNamedLayerWrapper.- Returns:
- the named layer of this
TLcdWMSStyledNamedLayerWrapper.
-
getNamedLayerStyle
Returns the named layer style of thisTLcdWMSStyledNamedLayerWrapper.- Returns:
- the named layer style of this
TLcdWMSStyledNamedLayerWrapper. - See Also:
-
setNamedLayerStyle
Sets the new named layer style to use for the corresponding named layer.- Parameters:
aNamedLayerStyle- the new namedLayerStyle property value.- See Also:
-
isVisible
public boolean isVisible()Returns if this layer is in a visible state. By default,trueis returned.- Returns:
- if this layer is in a visible state.
- See Also:
-
setVisible
public void setVisible(boolean aVisible) Sets the visibility of this layer.- Parameters:
aVisible- the new visibility property value.- See Also:
-
isQueryable
public boolean isQueryable()Returns if this layer is in a queryable state.
By default,
trueis returned.- Returns:
- if this layer is in a queryable state.
- Since:
- 2016.1
- See Also:
-
setQueryable
public void setQueryable(boolean aQueryable) Sets if this layer should be queryable or not. This flag allows to make WMS layers non-queryable. If this layer is queryable (server-side), but this flag is set to false (client-side),
ALcdWMSProxy#createFeatureInfoInputStreamwill not include this layer in the GetFeatureInfo request.- Parameters:
aQueryable-trueto make the layer queryable,falseotherwise.- Since:
- 2016.1
- See Also:
-