Share via


MercatorUtility.ZoomToScale Method

This documentation is no longer available on MSDN, however it is available as a CHM download.

Calculates the scale based on the specified location and zoom level.

Namespace: Microsoft.Maps.MapControl.Core
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)

Usage

Syntax

'Declaration
Public Shared Function ZoomToScale ( _
    logicalAreaSizeInScreenSpaceAtLevel1 As Size, _
    zoomLevel As Double, _
    location As Location _
) As Double
public static double ZoomToScale (
    Size logicalAreaSizeInScreenSpaceAtLevel1,
    double zoomLevel,
    Location location
)
public:
static double ZoomToScale (
    Size logicalAreaSizeInScreenSpaceAtLevel1, 
    double zoomLevel, 
    Location^ location
)
public static double ZoomToScale (
    Size logicalAreaSizeInScreenSpaceAtLevel1, 
    double zoomLevel, 
    Location location
)
public static function ZoomToScale (
    logicalAreaSizeInScreenSpaceAtLevel1 : Size, 
    zoomLevel : double, 
    location : Location
) : double

Parameters

  • logicalAreaSizeInScreenSpaceAtLevel1
    The available screen size. This parameter specifies the width and height (in pixels) of zoom level 1. This should be 512x512, unless you are using your own non-standard tiles.
  • zoomLevel
    The zoom level to use.
  • location
    The center location to use.

Return Value

Returns Double.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

See Also

Reference

MercatorUtility Class
MercatorUtility Members
Microsoft.Maps.MapControl.Core Namespace