MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>
/// This method updates the CurrentExtent by snapping to a zoom level in the provided
/// zoom level set.
/// </summary>
/// <returns>
/// This method updates the CurrentExtent by snapping to a zoom level in the provided
/// zoom level set.
/// </returns>
/// <remarks>None</remarks>
/// <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>
/// <param name="zoomLevelSet">This parameter is the set of zoom levels you want to snap to.</param>
This method updates the CurrentExtent by snapping to a zoom level in the provided
zoom level set.
This method updates the CurrentExtent by snapping to a zoom level in the provided zoom level set .
public void SnapToZoomLevel(GeographyUnit worldExtentUnit, float screenWidth, float screenHeight, ZoomLevelSet zoomLevelSet)
        {
            ValidatorHelper.CheckGeographyUnitIsValid(worldExtentUnit, "worldExtentUnit");
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            currentExtent = SnapToZoomLevel(currentExtent, worldExtentUnit, screenWidth, screenHeight, zoomLevelSet);
        }
public void SnapToZoomLevel ( GeographyUnit worldExtentUnit , float screenWidth , float screenHeight , ZoomLevelSet zoomLevelSet ) { ValidatorHelper . CheckGeographyUnitIsValid ( worldExtentUnit , " " ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; currentExtent = SnapToZoomLevel ( currentExtent , worldExtentUnit , screenWidth , screenHeight , zoomLevelSet ) ; }
This method updates the CurrentExtent by snapping to a zoom level in the provided
zoom level set.
This method updates the CurrentExtent by snapping to a zoom level in the provided zoom level set .
This method updates the CurrentExtent by snapping to a zoom level in the provided
zoom level set.
This method updates the CurrentExtent by snapping to a zoom level in the provided zoom level set .
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 .
zoomLevelSet
ZoomLevelSet
This parameter is the set of zoom levels you want to snap to.
This parameter is the set of zoom levels you want to snap to .
remarks
None