Class NativeScaleLayer.Scale

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index  
      private boolean isNative
      True if this scale is native resolution for data source.
      private double scale
      Scale factor, same unit as in NavigatableComponent
    • Constructor Summary

      Constructors 
      Constructor Description
      Scale​(double scale, boolean isNative, int index)
      Constructs a new Scale with given scale, native and index values.
      Scale​(double scale, int index)
      Constructs a new Scale with given scale, native defaults to true.
    • Field Detail

      • isNative

        private final boolean isNative
        True if this scale is native resolution for data source.
      • index

        private final int index
    • Constructor Detail

      • Scale

        public Scale​(double scale,
                     int index)
        Constructs a new Scale with given scale, native defaults to true.
        Parameters:
        scale - as defined in WMTS (scaleDenominator)
        index - zoom index for this scale
      • Scale

        public Scale​(double scale,
                     boolean isNative,
                     int index)
        Constructs a new Scale with given scale, native and index values.
        Parameters:
        scale - as defined in WMTS (scaleDenominator)
        isNative - is this scale native to the source or not
        index - zoom index for this scale