MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>Get the current Scale responding to the <strong>CurrentExtent</strong>.</summary>
/// <returns>The calculated scale based on the CurrentExtent.</returns>
/// <param name="screenWidth">
/// This parameter specifies the screen width responding to the
/// <strong>CurrentExtent</strong>.
/// </param>
/// <param name="mapUnit">This parameter specifies the MapUnit used in the current map.</param>
Get the current Scale responding to the CurrentExtent
Get the current Scale responding to the CurrentExtent
public double GetCurrentScale(float screenWidth, GeographyUnit mapUnit)
        {
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckGeographyUnitIsValid(mapUnit, "mapUnit");
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            return GetCurrentScale(currentExtent, screenWidth, mapUnit);
        }
public double GetCurrentScale ( float screenWidth , GeographyUnit mapUnit ) { ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckGeographyUnitIsValid ( mapUnit , " " ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; return GetCurrentScale ( currentExtent , screenWidth , mapUnit ) ; }
Get the current Scale responding to the CurrentExtent
Get the current Scale responding to the CurrentExtent
The calculated scale based on the CurrentExtent.
The calculated scale based on the CurrentExtent .
screenWidth
float
This parameter specifies the screen width responding to the
CurrentExtent
This parameter specifies the screen width responding to the CurrentExtent
mapUnit
GeographyUnit
This parameter specifies the MapUnit used in the current map.
This parameter specifies the MapUnit used in the current map .