MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method updates the CurrentExtent by zooming to a certain scale.</summary>
/// <remarks>None</remarks>
/// <param name="targetScale">This parameter is the scale you want to zoom into.</param>
/// <param name="worldExtentUnit">This parameter is the geographic unit of the CurrentExtent.</param>
/// <param name="screenWidth">This parameter is the screen width.</param>
/// <param name="screenHeight">This parameter is the screen height.</param>
This method updates the CurrentExtent by zooming to a certain scale.
This method updates the CurrentExtent by zooming to a certain scale .
public void ZoomToScale(double targetScale, GeographyUnit worldExtentUnit, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckGeographyUnitIsValid(worldExtentUnit, "worldExtentUnit");
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            currentExtent = ZoomToScale(targetScale, currentExtent, worldExtentUnit, screenWidth, screenHeight);
        }
public void ZoomToScale ( double targetScale , GeographyUnit worldExtentUnit , float screenWidth , float screenHeight ) { ValidatorHelper . CheckGeographyUnitIsValid ( worldExtentUnit , " " ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; currentExtent = ZoomToScale ( targetScale , currentExtent , worldExtentUnit , screenWidth , screenHeight ) ; }
This method updates the CurrentExtent by zooming to a certain scale.
This method updates the CurrentExtent by zooming to a certain scale .
targetScale
double
This parameter is the scale you want to zoom into.
This parameter is the scale you want to zoom into .
worldExtentUnit
GeographyUnit
This parameter is the geographic unit of the CurrentExtent.
This parameter is the geographic unit of the CurrentExtent .
screenWidth
float
This parameter is the screen width.
This parameter is the screen width .
screenHeight
float
This parameter is the screen height.
This parameter is the screen height .
remarks
None