User Tools

Site Tools


thinkgeo.mapsuite.wpfdesktopedition.maparguments

This is an old revision of the document!


ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments

<!– Class –> Contains important properties and methods of current map object.

Remarks

For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments</a>

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodMapArguments Constructor of MapArguments.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetSnappedExtent RectangleShape Gets a snapped extent from the provided extent.
Public MethodGetSnappedExtent RectangleShape, ZoomSnapDirection
Public MethodGetSnappedZoomLevelIndex RectangleShape Gets a snapped zoom level index from the provided extent.
Public MethodGetSnappedZoomLevelIndex Double Gets a snapped zoom level index from the provided scale.
Public MethodGetType Object
Public MethodToScreenCoordinate PointShape Converts a point from world coordinate to screen coordinate.
Public MethodToString Object
Public MethodToWorldCoordinate PointShape Converts a point from screen coordinate to world coordinate.

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyActualHeight Double Gets or sets the height of current map object in screen coordinate.
Public PropertyActualWidth Double Gets or sets the width of current map object in screen coordinate.
Public PropertyCurrentExtent RectangleShape Gets or sets the extent of current map.
Public PropertyCurrentResolution Double Gets or sets a double value that indicates the current resolution of the map.
Public PropertyCurrentScale Double Gets or sets a double value that indicates the current scale of the map.
Public PropertyMapUnit GeographyUnit Gets or sets the GeographyUnit for the map.
Public PropertyMaxExtent RectangleShape Gets or sets the max extent of current map.
Public PropertyMaximumScale Double This property gets and sets a maximum scale when navigating the map. When you keep zooming out, and the target scale is bigger than the maximum scale, the zooming operation will be stopped.
Public PropertyMinimumScale Double This property gets and sets a minimum scale when navigating the map. When you keep zooming in, and the target scale is smaller than the minimum scale, the zooming operation will be stopped.
Public PropertyZoomLevelScales Collection<Double> Gets a collection of double values that determines the zoomlevel scales.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

MapArguments()

Constructor of MapArguments.

Remarks

Parameters

Name Type Description

Go Back

Protected Constructors

Public Methods

Equals(Object)

Remarks

Return Value

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

Parameters

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

<!– System.Object –> Go Back

GetHashCode()

Remarks

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

GetSnappedExtent(RectangleShape)

Gets a snapped extent from the provided extent.

Remarks

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> A RectangleShape object that indicates the extent which is snapped.

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> An extent to be snapped.

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

GetSnappedExtent(RectangleShape, ZoomSnapDirection)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>
zoomSnapDirection ZoomSnapDirection<!– ThinkGeo.MapSuite.WpfDesktopEdition.ZoomSnapDirection –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

GetSnappedZoomLevelIndex(RectangleShape)

Gets a snapped zoom level index from the provided extent.

Remarks

The extent will automatically snapped a closest scale from the ZoomLevelScale list, and create an extent back with the map's screen width and height.

Return Value

Return Type Description
Int32<!– System.Int32 –> An integar value that indicates the snapped zoom level index.

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> An extent to be snapped.

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

GetSnappedZoomLevelIndex(Double)

Gets a snapped zoom level index from the provided scale.

Remarks

The scale will automatically snapped a closest scale from the ZoomLevelScale list, and create an extent back with the map's screen width and height.

Return Value

Return Type Description
Int32<!– System.Int32 –> An integar value that indicates the snapped zoom level index.

Parameters

Name Type Description
scale Double<!– System.Double –> A scale to be snapped.

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

GetType()

Remarks

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

ToScreenCoordinate(PointShape)

Converts a point from world coordinate to screen coordinate.

Remarks

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> A point in screen coordinate.

Parameters

Name Type Description
worldCoordinate PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> A point in world coordinate to be converted.

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

ToString()

Remarks

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

ToWorldCoordinate(PointShape)

Converts a point from screen coordinate to world coordinate.

Remarks

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> A point in world coordinate.

Parameters

Name Type Description
screenCoordinate PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> A point in screen coordinate to be converted.

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

Protected Methods

Finalize()

Remarks

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Remarks

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

ActualHeight

Gets or sets the height of current map object in screen coordinate.

Remarks

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

ActualWidth

Gets or sets the width of current map object in screen coordinate.

Remarks

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

CurrentExtent

Gets or sets the extent of current map.

Remarks

Return Value

Return Type
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

CurrentResolution

Gets or sets a double value that indicates the current resolution of the map.

Remarks

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

CurrentScale

Gets or sets a double value that indicates the current scale of the map.

Remarks

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

MapUnit

Gets or sets the GeographyUnit for the map.

Remarks

Return Value

Return Type
GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

MaxExtent

Gets or sets the max extent of current map.

Remarks

Return Value

Return Type
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

MaximumScale

This property gets and sets a maximum scale when navigating the map. When you keep zooming out, and the target scale is bigger than the maximum scale, the zooming operation will be stopped.

Remarks

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

MinimumScale

This property gets and sets a minimum scale when navigating the map. When you keep zooming in, and the target scale is smaller than the minimum scale, the zooming operation will be stopped.

Remarks

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

ZoomLevelScales

Gets a collection of double values that determines the zoomlevel scales.

Remarks

Return Value

Return Type
Collection<Double><!– System.Collections.ObjectModel.Collection{System.Double} –>

<!– ThinkGeo.MapSuite.WpfDesktopEdition.MapArguments –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.wpfdesktopedition.maparguments.1440040136.txt.gz · Last modified: 2015/09/18 03:12 (external edit)