Table of Contents

ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> This class represents a collection of ZoomLevels.

Remarks

This class represents a collection of ZoomLevels. Each ZoomLevel has a different scale and can store Styles that determine how InternalFeatures draw.

Inheritance Hierarchy

*System.Object **ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodZoomLevelSet This is the default constructor.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodStatic MemberGetHigherZoomLevelScale Double, ZoomLevelSet ZoomToScale out, the result is greater than input
Public MethodStatic MemberGetLowerZoomLevelScale Double, ZoomLevelSet ZoomToScale in, the result is less than input
Public MethodGetType Object
Public MethodGetZoomLevel RectangleShape, Double, GeographyUnit This method returns the active ZoomLevel based on an extent, a map unit and a screen width.
Public MethodGetZoomLevel RectangleShape, Double, GeographyUnit, Single This method returns the active ZoomLevel based on an extent, a map unit and a screen width.
Public MethodGetZoomLevelForDrawing RectangleShape, Double, GeographyUnit, Single This method returns the active ZoomLevel based on an extent, a map unit and a canvas width.
Public MethodGetZoomLevelForDrawing RectangleShape, Double, GeographyUnit This method returns the active ZoomLevel based on an extent, a map unit and a canvas width.
Public MethodGetZoomLevels This method return all of the zoomLevels in the zoomLevelSet.
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyCustomZoomLevels Collection<ZoomLevel> This property gets the custom zoom levels from the zoomLevelSet.
Public PropertyName String This property gets and sets the name for the ZoomSet.
Public PropertyZoomLevel01 ZoomLevel This property gets the ZoomLevel for Level01.
Public PropertyZoomLevel02 ZoomLevel This property gets the ZoomLevel for Level02.
Public PropertyZoomLevel03 ZoomLevel This property gets the ZoomLevel for Level03.
Public PropertyZoomLevel04 ZoomLevel This property gets the ZoomLevel for Level04.
Public PropertyZoomLevel05 ZoomLevel This property gets the ZoomLevel for Level05.
Public PropertyZoomLevel06 ZoomLevel This property gets the ZoomLevel for Level06.
Public PropertyZoomLevel07 ZoomLevel This property gets the ZoomLevel for Level07.
Public PropertyZoomLevel08 ZoomLevel This property gets the ZoomLevel for Level08.
Public PropertyZoomLevel09 ZoomLevel This property gets the ZoomLevel for Level09.
Public PropertyZoomLevel10 ZoomLevel This property gets the ZoomLevel for Level10.
Public PropertyZoomLevel11 ZoomLevel This property gets the ZoomLevel for Level11.
Public PropertyZoomLevel12 ZoomLevel This property gets the ZoomLevel for Level12.
Public PropertyZoomLevel13 ZoomLevel This property gets the ZoomLevel for Level13.
Public PropertyZoomLevel14 ZoomLevel This property gets the ZoomLevel for Level14.
Public PropertyZoomLevel15 ZoomLevel This property gets the ZoomLevel for Level15.
Public PropertyZoomLevel16 ZoomLevel This property gets the ZoomLevel for Level16.
Public PropertyZoomLevel17 ZoomLevel This property gets the ZoomLevel for Level17.
Public PropertyZoomLevel18 ZoomLevel This property gets the ZoomLevel for Level18.
Public PropertyZoomLevel19 ZoomLevel This property gets the ZoomLevel for Level19.
Public PropertyZoomLevel20 ZoomLevel This property gets the ZoomLevel for Level20.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

ZoomLevelSet()

This is the default constructor.

Remarks

This constructor is where we set the default scales for each ZoomLevel. If you inherit from this class to create your own custom ZoomSet, then you should not call the base constructor if you want to supply your own custom ZoomLevels.

Parameters

Name Type Description

Go Back

Protected Constructors

Public Methods

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetHigherZoomLevelScale(Double, ZoomLevelSet)

<!– static –> ZoomToScale out, the result is greater than input

Return Value

Return Type Description
Double<!– System.Double –>

Parameters

Name Type Description
currentScale Double<!– System.Double –>
zoomLevelSet ZoomLevelSet<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

GetLowerZoomLevelScale(Double, ZoomLevelSet)

<!– static –> ZoomToScale in, the result is less than input

Return Value

Return Type Description
Double<!– System.Double –>

Parameters

Name Type Description
currentScale Double<!– System.Double –>
zoomLevelSet ZoomLevelSet<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetZoomLevel(RectangleShape, Double, GeographyUnit)

This method returns the active ZoomLevel based on an extent, a map unit and a screen width.

Return Value

Return Type Description
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –> This method returns the active ZoomLevel based on an extent, a map unit and a screen width.

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is a world extent.
screenWidth Double<!– System.Double –> This parameter is the width of the map in pixels.
mapUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the unit of the map.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

GetZoomLevel(RectangleShape, Double, GeographyUnit, Single)

This method returns the active ZoomLevel based on an extent, a map unit and a screen width.

Return Value

Return Type Description
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –> This method returns the active ZoomLevel based on an extent, a map unit and a screen width.

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is a world extent.
screenWidth Double<!– System.Double –> This parameter is the width of the map in pixels.
mapUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the unit of the map.
dpi Single<!– System.Single –> This parameter is the dpi of the extent.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

GetZoomLevelForDrawing(RectangleShape, Double, GeographyUnit, Single)

This method returns the active ZoomLevel based on an extent, a map unit and a canvas width.

Return Value

Return Type Description
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –> This method returns the active ZoomLevel based on an extent, map unit and a canvas width.

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is a world extent.
screenWidth Double<!– System.Double –> This parameter is the width of the canvas in pixels.
mapUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the unit of the map.
dpi Single<!– System.Single –> This parameter is the dpi of the extent.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

GetZoomLevelForDrawing(RectangleShape, Double, GeographyUnit)

This method returns the active ZoomLevel based on an extent, a map unit and a canvas width.

Return Value

Return Type Description
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –> This method returns the active ZoomLevel based on an extent, map unit and a canvas width.

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is a world extent.
screenWidth Double<!– System.Double –> This parameter is the width of the canvas in pixels.
mapUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the unit of the map.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

GetZoomLevels()

This method return all of the zoomLevels in the zoomLevelSet.

Return Value

Return Type Description
Collection<ZoomLevel><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel} –> This method return all of the zoomlevels in the zoomLevelSet.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

CustomZoomLevels

This property gets the custom zoom levels from the zoomLevelSet.

Return Value

Return Type
Collection<ZoomLevel><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel} –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

Name

This property gets and sets the name for the ZoomSet.

Remarks

The name is user defined. It is useful to set, as it may be used for higher level components such as legends, etc.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel01

This property gets the ZoomLevel for Level01.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel02

This property gets the ZoomLevel for Level02.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel03

This property gets the ZoomLevel for Level03.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel04

This property gets the ZoomLevel for Level04.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel05

This property gets the ZoomLevel for Level05.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel06

This property gets the ZoomLevel for Level06.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel07

This property gets the ZoomLevel for Level07.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel08

This property gets the ZoomLevel for Level08.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel09

This property gets the ZoomLevel for Level09.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel10

This property gets the ZoomLevel for Level10.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel11

This property gets the ZoomLevel for Level11.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel12

This property gets the ZoomLevel for Level12.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel13

This property gets the ZoomLevel for Level13.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel14

This property gets the ZoomLevel for Level14.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel15

This property gets the ZoomLevel for Level15.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel16

This property gets the ZoomLevel for Level16.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel17

This property gets the ZoomLevel for Level17.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel18

This property gets the ZoomLevel for Level18.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel19

This property gets the ZoomLevel for Level19.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

ZoomLevel20

This property gets the ZoomLevel for Level20.

Return Value

Return Type
ZoomLevel<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevel –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> Go Back

Protected Properties

Public Events

NOTOC WindowsPhoneMapSuiteCore ThinkGeo.MapSuite.WindowsPhoneCore UpdateDocumentation