User Tools

Site Tools


thinkgeo.mapsuite.silverlightcore.zoomlevelset

ThinkGeo.MapSuite.SilverlightCore.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.

This class represents a collection of ZoomLevels.

Inheritance Hierarchy

Members 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

Protected Constructors

Public Methods

GetZoomLevel(RectangleShape,Double,GeographyUnit)

  • This method returns the active ZoomLevel based on an extent, a map unit and a screen width.
Remarks
  • N/A
Return Value
  • Type:ZoomLevel
  • Description:This method returns the active ZoomLevel based on an extent, a map unit and a screen width.
Parameters
  • extent
  • screenWidth
    • Type:Double
    • Description:This parameter is the width of the map in pixels.
  • mapUnit
    • Description:This parameter is the unit of the map.

GetZoomLevel(RectangleShape,Double,GeographyUnit,Single)

  • This method returns the active ZoomLevel based on an extent, a map unit and a screen width.
Remarks
  • N/A
Return Value
  • Type:ZoomLevel
  • Description:This method returns the active ZoomLevel based on an extent, a map unit and a screen width.
Parameters
  • extent
  • screenWidth
    • Type:Double
    • Description:This parameter is the width of the map in pixels.
  • mapUnit
    • Description:This parameter is the unit of the map.
  • dpi
    • Type:Single
    • Description:This parameter is the dpi of the extent.

GetZoomLevelForDrawing(RectangleShape,Double,GeographyUnit,Single)

  • This method returns the active ZoomLevel based on an extent, a map unit and a canvas width.
Remarks
  • N/A
Return Value
  • Type:ZoomLevel
  • Description:This method returns the active ZoomLevel based on an extent, map unit and a canvas width.
Parameters
  • extent
  • screenWidth
    • Type:Double
    • Description:This parameter is the width of the canvas in pixels.
  • mapUnit
    • Description:This parameter is the unit of the map.
  • dpi
    • Type:Single
    • Description:This parameter is the dpi of the extent.

GetZoomLevelForDrawing(RectangleShape,Double,GeographyUnit)

  • This method returns the active ZoomLevel based on an extent, a map unit and a canvas width.
Remarks
  • N/A
Return Value
  • Type:ZoomLevel
  • Description:This method returns the active ZoomLevel based on an extent, map unit and a canvas width.
Parameters
  • extent
  • screenWidth
    • Type:Double
    • Description:This parameter is the width of the canvas in pixels.
  • mapUnit
    • Description:This parameter is the unit of the map.

GetZoomLevels()

  • This method return all of the zoomLevels in the zoomLevelSet.
Remarks
  • None.
Return Value
  • Type:Collection<ZoomLevel>
  • Description:This method return all of the zoomlevels in the zoomLevelSet.
Parameters

ToString()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

GetLowerZoomLevelScale(Double,ZoomLevelSet)

  • ZoomToScale in, the result is less than input
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • currentScale
    • Type:Double
    • Description:N/A

GetHigherZoomLevelScale(Double,ZoomLevelSet)

  • ZoomToScale out, the result is greater than input
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:N/A
Parameters
  • currentScale
    • Type:Double
    • Description:N/A

Protected Methods

ZBo=(Double)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • scale
    • Type:Double
    • Description:N/A

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

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
  • Type:String

CustomZoomLevels

This property gets the custom zoom levels from the zoomLevelSet.

Remarks

None

Return Value

ZoomLevel01

This property gets the ZoomLevel for Level01.

Remarks

None

Return Value

ZoomLevel02

This property gets the ZoomLevel for Level02.

Remarks

None

Return Value

ZoomLevel03

This property gets the ZoomLevel for Level03.

Remarks

None

Return Value

ZoomLevel04

This property gets the ZoomLevel for Level04.

Remarks

None

Return Value

ZoomLevel05

This property gets the ZoomLevel for Level05.

Remarks

None

Return Value

ZoomLevel06

This property gets the ZoomLevel for Level06.

Remarks

None

Return Value

ZoomLevel07

This property gets the ZoomLevel for Level07.

Remarks

None

Return Value

ZoomLevel08

This property gets the ZoomLevel for Level08.

Remarks

None

Return Value

ZoomLevel09

This property gets the ZoomLevel for Level09.

Remarks

None

Return Value

ZoomLevel10

This property gets the ZoomLevel for Level10.

Remarks

None

Return Value

ZoomLevel11

This property gets the ZoomLevel for Level11.

Remarks

None

Return Value

ZoomLevel12

This property gets the ZoomLevel for Level12.

Remarks

None

Return Value

ZoomLevel13

This property gets the ZoomLevel for Level13.

Remarks

None

Return Value

ZoomLevel14

This property gets the ZoomLevel for Level14.

Remarks

None

Return Value

ZoomLevel15

This property gets the ZoomLevel for Level15.

Remarks

None

Return Value

ZoomLevel16

This property gets the ZoomLevel for Level16.

Remarks

None

Return Value

ZoomLevel17

This property gets the ZoomLevel for Level17.

Remarks

None

Return Value

ZoomLevel18

This property gets the ZoomLevel for Level18.

Remarks

None

Return Value

ZoomLevel19

This property gets the ZoomLevel for Level19.

Remarks

None

Return Value

ZoomLevel20

This property gets the ZoomLevel for Level20.

Remarks

None

Return Value

Protected Properties

Public Events

thinkgeo.mapsuite.silverlightcore.zoomlevelset.txt · Last modified: 2017/03/16 21:59 (external edit)