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
-
Method Details
-
getRatio
Double getRatio()- Returns:
- ratio or
null
if not set.null
value means that default value is used: '1.5
'
-
setRatio
Sets ratio. Value1
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 be1
or higher. The default value is1.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
-