Interface AbstractImageWmsSource.HasRatio

All Known Subinterfaces:
AbstractImageWmsSource.HasImageWmsSourceOptions
All Known Implementing Classes:
ImageWmsSource, NoOpImageWmsSource
Enclosing class:
AbstractImageWmsSource

public static interface AbstractImageWmsSource.HasRatio
Interface to be implemented by sources that should provide ratio management.

For more details see: ImageWMS docs

  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Sets ratio.
  • Method Details

    • getRatio

      Double getRatio()
      Returns:
      ratio or null if not set. null value means that default value is used: '1.5'
    • setRatio

      void setRatio(Double ratio)
      Sets ratio. Value 1 means image requests are the size of the map viewport, 2 means twice the width and height of the map viewport, and so on. Must be 1 or higher. The default value is 1.5.

      Note, ratio attribute is set only at creation time and cannot be changed at runtime.

      For more details see: ImageWMS docs

      Parameters:
      ratio - ratio to set