Class AbstractWMXLayerParams

Direct Known Subclasses:
WmsLayerParam, WMTSLayerParam

public abstract class AbstractWMXLayerParams extends AbstractTiledLayerParams
An abstract layers params class for WM* layers (e.g. WMS or WMTS).
  • Field Details

    • customParams

      public PObject customParams
      Custom query parameters to use when making http requests. These are related to mergeableParams except they are the parameters that will prevent two layers from the same server from being merged into a single request with both layers. See mergeableParams for a more detailed example of the difference between mergeableParams and customParams.

      The json should look something like:

      
       {
           "param1Name": "value",
           "param2Name": ["value1", "value2"]
       }
       
    • mergeableParams

      public PJsonObject mergeableParams
      Custom query parameters that can be merged if multiple layers are merged together into a single request.

      The json should look something like:

      
       {
           "param1Name": "value",
           "param2Name": ["value1", "value2"]
       }
       
      For example in WMS the style parameter can be merged. If there are several wms layers that can be merged except they have different style parameters they can be merged because the style parameter can be merged.

      Compare that to DPI parameter (for QGIS wms mapserver). if two layers have different DPI then the layers cannot be merged. In this case the DPI should NOT be one of the mergeableParams it should be one of the customParams.

  • Constructor Details

    • AbstractWMXLayerParams

      protected AbstractWMXLayerParams()
      Constructor.
    • AbstractWMXLayerParams

      protected AbstractWMXLayerParams(AbstractWMXLayerParams other)
      Copy constructor.
      Parameters:
      other - the object to copy
  • Method Details