MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>
/// This method returns an extent that is snapped to a zoom level in the provided
/// zoom level set.
/// </summary>
/// <returns>
/// This method returns an extent that is snapped to a zoom level in the provided
/// zoom level set.
/// </returns>
/// <remarks>None</remarks>
/// <param name="worldExtent">This parameter is the world extent you want snapped.</param>
/// <param name="worldExtentUnit">This parameter is the geographic unit of the world extent parameter.</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 returns an extent that is snapped to a zoom level in the provided
zoom level set.
This method returns an extent that is snapped to a zoom level in the provided zoom level set .
public static RectangleShape SnapToZoomLevel(RectangleShape worldExtent, GeographyUnit worldExtentUnit, float screenWidth, float screenHeight, ZoomLevelSet zoomLevelSet)
        {
            ValidatorHelper.CheckExtentIsValid(worldExtent, "worldExtent");
            ValidatorHelper.CheckGeographyUnitIsValid(worldExtentUnit, "worldExtentUnit");
            return ExtentHelper.GetSnappedExtent(worldExtent, worldExtentUnit, screenWidth, screenHeight, zoomLevelSet);
        }
public static RectangleShape SnapToZoomLevel ( RectangleShape worldExtent , GeographyUnit worldExtentUnit , float screenWidth , float screenHeight , ZoomLevelSet zoomLevelSet ) { ValidatorHelper . CheckExtentIsValid ( worldExtent , " " ) ; ValidatorHelper . CheckGeographyUnitIsValid ( worldExtentUnit , " " ) ; return ExtentHelper . GetSnappedExtent ( worldExtent , worldExtentUnit , screenWidth , screenHeight , zoomLevelSet ) ; }
This method returns an extent that is snapped to a zoom level in the provided
zoom level set.
This method returns an extent that is snapped to a zoom level in the provided zoom level set .
This method returns an extent that is snapped to a zoom level in the provided
zoom level set.
This method returns an extent that is snapped to a zoom level in the provided zoom level set .
worldExtent
RectangleShape
This parameter is the world extent you want snapped.
This parameter is the world extent you want snapped .
worldExtentUnit
GeographyUnit
This parameter is the geographic unit of the world extent parameter.
This parameter is the geographic unit of the world extent parameter .
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