User Tools

Site Tools


thinkgeo.mapsuite.androidedition.maparguments

This is an old revision of the document!


ThinkGeo.MapSuite.AndroidEdition.MapArguments

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

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodMapArguments
Public MethodMapArguments RectangleShape, GeographyUnit, Single, Single

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetHashCode Object
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 PropertyCustomData Dictionary<String,Object> Gets the custom data.
Public PropertyMapUnit GeographyUnit Gets or sets the GeographyUnit for the map.
Public PropertyScreenHeight Single Gets or sets the height of the screen.
Public PropertyScreenWidth Single Gets or sets the width of the screen.
Public PropertyZoomLevelScales Collection<Double> Gets a collection of double values that determines the zoomlevel scales.
Public PropertyZoomLevelSet ZoomLevelSet This property gets or sets the ZoomLevelSet used for the MapView control.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

MapArguments()

Parameters

Name Type Description

Go Back

MapArguments(RectangleShape, GeographyUnit, Single, Single)

Parameters

Name Type Description
currentExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>
mapUnit GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –>
screenWidth Single<!– System.Single –>
screenHeight Single<!– System.Single –>

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

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.AndroidEdition.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.AndroidEdition.MapArguments –> Go Back

GetType()

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.

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.AndroidEdition.MapArguments –> Go Back

ToString()

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.

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.AndroidEdition.MapArguments –> 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

ActualHeight

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

Return Value

Return Type
Double<!– System.Double –>

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

ActualWidth

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

Return Value

Return Type
Double<!– System.Double –>

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

CurrentExtent

Gets or sets the extent of current map.

Return Value

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

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

CurrentResolution

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

Return Value

Return Type
Double<!– System.Double –>

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

CurrentScale

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

Return Value

Return Type
Double<!– System.Double –>

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

CustomData

Gets the custom data.

Return Value

Return Type
Dictionary<String,Object><!– System.Collections.Generic.Dictionary{System.String,System.Object} –>

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

MapUnit

Gets or sets the GeographyUnit for the map.

Return Value

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

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

ScreenHeight

Gets or sets the height of the screen.

Return Value

Return Type
Single<!– System.Single –>

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

ScreenWidth

Gets or sets the width of the screen.

Return Value

Return Type
Single<!– System.Single –>

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

ZoomLevelScales

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

Return Value

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

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

ZoomLevelSet

This property gets or sets the ZoomLevelSet used for the MapView control.

Return Value

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

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

Protected Properties

Public Events

thinkgeo.mapsuite.androidedition.maparguments.1440040127.txt.gz · Last modified: 2015/09/21 10:30 (external edit)