Class WmsLayerParam

Direct Known Subclasses:
TiledWmsLayerParam

public class WmsLayerParam extends AbstractWMXLayerParams
Layer parameters for WMS layer.
  • Field Details

    • baseURL

      public String baseURL
      The base URL for the WMS. Used for making WMS requests.
    • layers

      public String[] layers
      The wms layer to request in the GetMap request. The order is important. It is the order that they will appear in the request.

      As with the WMS specification, the first layer will be the first layer drawn on the map (the bottom/base layer) of the map. This means that layer at position 0 in the array will covered by layer 1 (where not transparent) and so on.

    • styles

      public String[] styles
      The styles to apply to the layers. If this is defined there should be the same number as the layers and the style are applied to the layer in the layers field.
    • version

      public String version
      The WMS version to use when making requests.
    • useNativeAngle

      public boolean useNativeAngle
      If true transform the map angle to customParams.angle for GeoServer, and MapServer.
    • serverType

      public WmsLayerParam.ServerType serverType
      The server type ("mapserver", "geoserver" or "qgisserver"). By specifying the server type vendor specific parameters (like for the DPI value) can be used when making the request.
    • imageFormat

      public String imageFormat
      The format of the image. for example image/png, image/jpeg, etc...
    • method

      public org.springframework.http.HttpMethod method
      The HTTP verb to use for fetching the images. Can be either "GET" (the default) or "POST".

      In case of "POST", the parameters are send in the body of the request using an "application/x-www-form-urlencoded" content type. This can be used when the parameters are too long. Tested only with GeoServer.

  • Constructor Details

    • WmsLayerParam

      public WmsLayerParam()
      Constructor.
    • WmsLayerParam

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