User Tools

Site Tools


thinkgeo.mapsuite.windowsphonecore.extenthelper

Table of Contents

ThinkGeo.MapSuite.WindowsPhoneCore.ExtentHelper

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 static class exposes a number of helpful methods when dealing with extents.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodStatic MemberCenterAt RectangleShape, Double, Double, Double, Double This method returns an adjusted extent centered on a point.
Public MethodStatic MemberCenterAt RectangleShape, PointShape, Double, Double This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.
Public MethodStatic MemberCenterAt RectangleShape, Feature, Double, Double This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.
Public MethodEquals Object Object
Public MethodStatic MemberGetBoundingBoxOfItems IEnumerable<Feature> This API gets the BoundingBox of a group of Features.
Public MethodStatic MemberGetBoundingBoxOfItems IEnumerable<BaseShape> This API gets the BoundingBox of a group of BaseShapes.
Public MethodStatic MemberGetDrawingExtent RectangleShape, Double, Double This method returns an adjusted extent based on the ratio of the screen width and height.
Public MethodGetHashCode Object
Public MethodStatic MemberGetScale RectangleShape, Double, GeographyUnit, Single This method returns the current scale.
Public MethodStatic MemberGetScale RectangleShape, Double, GeographyUnit
Public MethodStatic MemberGetScreenDistanceBetweenTwoWorldPoints RectangleShape, Feature, Feature, Double, Double This method returns the number of pixels between two features.
Public MethodStatic MemberGetScreenDistanceBetweenTwoWorldPoints RectangleShape, PointShape, PointShape, Double, Double This method returns the number of pixels between two world points.
Public MethodGetType Object
Public MethodStatic MemberGetWorldDistanceBetweenTwoScreenPoints RectangleShape, Double, Double, Double, Double, Double, Double, GeographyUnit, DistanceUnit This method returns the distance in world units between two screen points.
Public MethodStatic MemberGetWorldDistanceBetweenTwoScreenPoints RectangleShape, Point, Point, Double, Double, GeographyUnit, DistanceUnit This method returns the distance in world units between two screen points.
Public MethodStatic MemberPan RectangleShape, PanDirection, Int32 This method returns a panned extent.
Public MethodStatic MemberPan RectangleShape, Double, Int32 This method returns a panned extent.
Public MethodStatic MemberSnapToZoomLevel RectangleShape, GeographyUnit, Double, Double, ZoomLevelSet This method returns an extent that is snapped to a zoom level in the provided zoom level set.
Public MethodStatic MemberToScreenCoordinate RectangleShape, PointShape, Double, Double This method returns screen coordinates from world coordinates.
Public MethodStatic MemberToScreenCoordinate RectangleShape, Feature, Double, Double This method returns screen coordinates from world coordinates.
Public MethodStatic MemberToScreenCoordinate RectangleShape, Double, Double, Double, Double This method returns screen coordinates from world coordinates.
Public MethodToString Object
Public MethodStatic MemberToWorldCoordinate RectangleShape, Double, Double, Double, Double This method returns world coordinates from screen coordinates.
Public MethodStatic MemberToWorldCoordinate RectangleShape, Point, Double, Double This method returns world coordinates from screen coordinates.
Public MethodStatic MemberZoomIn RectangleShape, Int32 This method returns a new extent that is zoomed in by the percentage provided.
Public MethodStatic MemberZoomIntoCenter RectangleShape, Int32, Double, Double, Double, Double This method returns an extent that is centered and zoomed in.
Public MethodStatic MemberZoomIntoCenter RectangleShape, Int32, PointShape, Double, Double This method returns an extent that is centered and zoomed in.
Public MethodStatic MemberZoomIntoCenter RectangleShape, Int32, Feature, Double, Double This method returns an extent that is centered and zoomed.
Public MethodStatic MemberZoomIntoOffsetPoint RectangleShape, Double, Double, Point, Int32 This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.
Public MethodStatic MemberZoomOut RectangleShape, Int32 This method returns a new extent that is zoomed out by the percentage provided.
Public MethodStatic MemberZoomOutToCenter RectangleShape, Int32, Feature, Double, Double This method returns an extent that is centered and zoomed out.
Public MethodStatic MemberZoomOutToCenter RectangleShape, Int32, PointShape, Double, Double This method returns an extent that is centered and zoomed out.
Public MethodStatic MemberZoomOutToCenter RectangleShape, Int32, Double, Double, Double, Double This method returns an extent that is centered and zoomed out.
Public MethodStatic MemberZoomOutToOffsetPoint RectangleShape, Double, Double, Point, Int32 This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.
Public MethodStatic MemberZoomToScale Double, RectangleShape, GeographyUnit, Double, Double This method returns a extent that has been zoomed into a certain scale.
Public MethodStatic MemberZoomToScale Double, RectangleShape, GeographyUnit, Double, Double, Point This method returns a extent that has been zoomed into a certain scale.

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

Protected Constructors

Public Methods

CenterAt(RectangleShape, Double, Double, Double, Double)

<!– static –> This method returns an adjusted extent centered on a point.

Overloads

This overload allows you to pass in a screen point as the center.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an adjusted extent centered on a point.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the current extent you want to center.
screenX Double<!– System.Double –> This parameter is the X coordinate on the screen to center on.
screenY Double<!– System.Double –> This parameter is the Y coordinate on the screen to center on.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

CenterAt(RectangleShape, PointShape, Double, Double)

<!– static –> This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.

Overloads

This overload allows you to pass in a world point as the center.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an adjusted extent centered on a point.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the current extent you want to center.
worldPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the world point you want to center on.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

CenterAt(RectangleShape, Feature, Double, Double)

<!– static –> This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.

Overloads

This overload allows you to pass in a world point as the center.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an adjusted extent centered on a point.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the current extent you want to center.
centerFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –>
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

Equals(Object)

Return Value

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

Parameters

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

<!– System.Object –> Go Back

GetBoundingBoxOfItems(IEnumerable<Feature>)

<!– static –> This API gets the BoundingBox of a group of Features.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> The BoundingBox that contains all the features you passed in.

Parameters

Name Type Description
features IEnumerable<Feature><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.WindowsPhoneCore.Feature} –> The target group of Features to get the BoundingBox for.

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

GetBoundingBoxOfItems(IEnumerable<BaseShape>)

<!– static –> This API gets the BoundingBox of a group of BaseShapes.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> The BoundingBox that contains all of the shapes you passed in.

Parameters

Name Type Description
shapes IEnumerable<BaseShape><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.WindowsPhoneCore.BaseShape} –> The target group of BaseShapes to get the BoundingBox for.

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

GetDrawingExtent(RectangleShape, Double, Double)

<!– static –> This method returns an adjusted extent based on the ratio of the screen width and height.

Remarks

This function is used because the extent to draw must be the rame ratio as the screen width and height. If they are not, then the image drawn will be stretched or compressed. We always adjust the extent upwards to ensure that no matter how we adjust it, the original extent will fit within the new extent. This ensures that everything you wanted to see in the first extent is visible and maybe a bit more.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an adjusted extent based on the ratio of the screen width and height.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to adjust for drawing.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

GetHashCode()

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

GetScale(RectangleShape, Double, GeographyUnit, Single)

<!– static –> This method returns the current scale.

Return Value

Return Type Description
Double<!– System.Double –> This method returns the current scale.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to find the scale for.
screenWidth Double<!– System.Double –> This parameter is the screen width.
worldExtentUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the unit of the world extent.
dpi Single<!– System.Single –>

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

GetScale(RectangleShape, Double, GeographyUnit)

<!– static –>

Return Value

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

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –>
screenWidth Double<!– System.Double –>
worldExtentUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –>

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

GetScreenDistanceBetweenTwoWorldPoints(RectangleShape, Feature, Feature, Double, Double)

<!– static –> This method returns the number of pixels between two features.

Return Value

Return Type Description
Double<!– System.Double –> This method returns the number of pixels between two features.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
worldPointFeature1 Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the first feature – the one you want to measure from.
worldPointFeature2 Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the second feature – the one you want to measure to.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

GetScreenDistanceBetweenTwoWorldPoints(RectangleShape, PointShape, PointShape, Double, Double)

<!– static –> This method returns the number of pixels between two world points.

Return Value

Return Type Description
Double<!– System.Double –> This method returns the number of pixels between two world points.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
worldPoint1 PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the first point – the one you want to measure from.
worldPoint2 PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the second point – the one you want to measure to.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

GetType()

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

GetWorldDistanceBetweenTwoScreenPoints(RectangleShape, Double, Double, Double, Double, Double, Double, GeographyUnit, DistanceUnit)

<!– static –> This method returns the distance in world units between two screen points.

Overloads

This overload allows you to pass in the X & Y for each point.

Return Value

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

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
screenPoint1X Double<!– System.Double –> This parameter is the X of the point you want to measure from.
screenPoint1Y Double<!– System.Double –> This parameter is the Y of the point you want to measure from.
screenPoint2X Double<!– System.Double –> This parameter is the X of the point you want to measure to.
screenPoint2Y Double<!– System.Double –> This parameter is the Y of the point you want to measure to.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.
worldExtentUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the world extent you passed in.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the geographic unit you want the result to show in.

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

GetWorldDistanceBetweenTwoScreenPoints(RectangleShape, Point, Point, Double, Double, GeographyUnit, DistanceUnit)

<!– static –> This method returns the distance in world units between two screen points.

Overloads

This overload allows you to pass in Point as the points.

Return Value

Return Type Description
Double<!– System.Double –> This method returns the distance in world units between two screen points.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
screenPoint1 Point<!– System.Windows.Point –> This is the screen point you want to measure from.
screenPoint2 Point<!– System.Windows.Point –> This is the screen point you want to measure to.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.
worldExtentUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This is the geographic unit of the world extent rectangle.
distanceUnit DistanceUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.DistanceUnit –> This is the geographic unit you want the result to show in.

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

Pan(RectangleShape, PanDirection, Int32)

<!– static –> This method returns a panned extent.

Overloads

This overload allows you to pass in a direction and a percentage by which you want to pan.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns a panned extent.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to pan.
direction PanDirection<!– ThinkGeo.MapSuite.WindowsPhoneCore.PanDirection –> This parameter is the direction in which you want to pan.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to pan.

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

Pan(RectangleShape, Double, Int32)

<!– static –> This method returns a panned extent.

Overloads

This overload allows you to pass in an angle and a percentage by which you want to pan.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns a panned extent.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to pan.
degree Double<!– System.Double –> This parameter is the degree you want to pan.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to pan.

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

SnapToZoomLevel(RectangleShape, GeographyUnit, Double, Double, ZoomLevelSet)

<!– static –> This method returns an extent that is snapped to a zoom level in the provided zoom level set.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is snapped to a zoom level in the provided zoom level set.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want snapped.
worldExtentUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the geographic unit of the world extent parameter.
screenWidth Double<!– System.Double –> This parameter is the screen width.
screenHeight Double<!– System.Double –> This parameter is the screen height.
zoomLevelSet ZoomLevelSet<!– ThinkGeo.MapSuite.WindowsPhoneCore.ZoomLevelSet –> This parameter is the set of zoom levels you want to snap to.

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

ToScreenCoordinate(RectangleShape, PointShape, Double, Double)

<!– static –> This method returns screen coordinates from world coordinates.

Return Value

Return Type Description
Point<!– System.Windows.Point –> This method returns screen coordinates from world coordinates.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
worldPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the world point you want converted to a screen point.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ToScreenCoordinate(RectangleShape, Feature, Double, Double)

<!– static –> This method returns screen coordinates from world coordinates.

Return Value

Return Type Description
Point<!– System.Windows.Point –> This method returns screen coordinates from world coordinates.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
worldPointFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the feature you want converted to a screen point.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ToScreenCoordinate(RectangleShape, Double, Double, Double, Double)

<!– static –> This method returns screen coordinates from world coordinates.

Overloads

This overload allows you to pass in world X & Y coordinates.

Return Value

Return Type Description
Point<!– System.Windows.Point –> This method returns screen coordinates from world coordinates.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
worldX Double<!– System.Double –> This parameter is the world X you want converted to screen points.
worldY Double<!– System.Double –> This parameter is the world Y you want converted to screen points.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ToString()

Return Value

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

Parameters

Name Type Description

<!– System.Object –> Go Back

ToWorldCoordinate(RectangleShape, Double, Double, Double, Double)

<!– static –> This method returns world coordinates from screen coordinates.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This method returns world coordinates from screen coordinates.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
screenX Double<!– System.Double –> This parameter is the X of the point you want converted to world coordinates.
screenY Double<!– System.Double –> This parameter is the Y of the point you want converted to world coordinates.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ToWorldCoordinate(RectangleShape, Point, Double, Double)

<!– static –> This method returns world coordinates from screen coordinates.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This method returns world coordinates from screen coordinates.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent.
screenPoint Point<!– System.Windows.Point –> This parameter is the screen point you want converted to a world point.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ZoomIn(RectangleShape, Int32)

<!– static –> This method returns a new extent that is zoomed in by the percentage provided.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns a new extent that is zoomed in by the percentage provided.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to zoom to.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to zoom in.

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

ZoomIntoCenter(RectangleShape, Int32, Double, Double, Double, Double)

<!– static –> This method returns an extent that is centered and zoomed in.

Overloads

This overload allows you to pass in the height and width in screen coordinates, as well as a screen X & Y.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is centered and zoomed in.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to center and zoom to.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to zoom in.
screenX Double<!– System.Double –> This parameter is the screen X you want to center on.
screenY Double<!– System.Double –> This parameter is the screen Y you want to center on.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ZoomIntoCenter(RectangleShape, Int32, PointShape, Double, Double)

<!– static –> This method returns an extent that is centered and zoomed in.

Overloads

This overload allows you to pass in the height and width in screen coordinates, as well as a world point.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is centered and zoomed in.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent that you want centered and zoomed to.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to zoom in.
worldPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the world point you want the extent to be centered on.
screenWidth Double<!– System.Double –> This parameter is the width in screen coordinates.
screenHeight Double<!– System.Double –> This parameter is the height in screen coordinates.

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

ZoomIntoCenter(RectangleShape, Int32, Feature, Double, Double)

<!– static –> This method returns an extent that is centered and zoomed.

Overloads

This overload allows you to pass in the height and width in screen coordinatesm as well as a feature.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is centered and zoomed in.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent that you want centered and zoomed to.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to zoom in.
centerFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the feature you want the extent to be centered on.
screenWidth Double<!– System.Double –> This parameter is the width in screen coordinates.
screenHeight Double<!– System.Double –> This parameter is the height in screen coordinates.

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

ZoomIntoOffsetPoint(RectangleShape, Double, Double, Point, Int32)

<!– static –> This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to afterward call GetDrawingExtent.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent that you want centered and zoomed.
screenWidth Double<!– System.Double –> This parameter is the width in screen coordinates.
screenHeight Double<!– System.Double –> This parameter is the height in screen coordinates.
offsetScreenPoint Point<!– System.Windows.Point –> This parameter is the screen point you want to keep it constant.
percentage Int32<!– System.Int32 –> This parameter is the percentage you want to zoom.

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

ZoomOut(RectangleShape, Int32)

<!– static –> This method returns a new extent that is zoomed out by the percentage provided.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns a new extent that is zoomed out by the percentage provided.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to zoom out to.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to zoom out.

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

ZoomOutToCenter(RectangleShape, Int32, Feature, Double, Double)

<!– static –> This method returns an extent that is centered and zoomed out.

Overloads

This overload allows you to pass in the height and width in screen coordinates, as well as a feature.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is centered and zoomed out.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to center and zoom out to.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to zoom out.
centerFeature Feature<!– ThinkGeo.MapSuite.WindowsPhoneCore.Feature –> This parameter is the feature you want the extent to be centered on.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ZoomOutToCenter(RectangleShape, Int32, PointShape, Double, Double)

<!– static –> This method returns an extent that is centered and zoomed out.

Overloads

This overload allows you to pass in the height and width in screen coordinates, as well as a world point.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is centered and zoomed out.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to center and zoom out to.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to zoom out.
worldPoint PointShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.PointShape –> This parameter is the world point you want the extent to be centered on.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ZoomOutToCenter(RectangleShape, Int32, Double, Double, Double, Double)

<!– static –> This method returns an extent that is centered and zoomed out.

Overloads

This overload allows you to pass in the height and width in screen coordinates, as well as a screen X & Y.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterward.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is centered and zoomed out.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want to center and zoom out to.
percentage Int32<!– System.Int32 –> This parameter is the percentage by which you want to zoom out.
screenX Double<!– System.Double –> This parameter is the screen X you want to center on.
screenY Double<!– System.Double –> This parameter is the screen Y you want to center on.
screenWidth Double<!– System.Double –> This parameter is the width of the screen.
screenHeight Double<!– System.Double –> This parameter is the height of the screen.

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

ZoomOutToOffsetPoint(RectangleShape, Double, Double, Point, Int32)

<!– static –> This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to afterward call GetDrawingExtent.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent that you want centered and zoomed.
screenWidth Double<!– System.Double –> This parameter is the width in screen coordinates.
screenHeight Double<!– System.Double –> This parameter is the height in screen coordinates.
offsetScreenPoint Point<!– System.Windows.Point –> This parameter is the screen point you want to keep it constant.
percentage Int32<!– System.Int32 –> This parameter is the percentage you want to zoom.

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

ZoomToScale(Double, RectangleShape, GeographyUnit, Double, Double)

<!– static –> This method returns a extent that has been zoomed into a certain scale.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns a extent that has been zoomed into a certain scale.

Parameters

Name Type Description
targetScale Double<!– System.Double –> This parameter is the scale you want to zoom into.
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want zoomed into the scale.
worldExtentUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the geographic unit of the world extent parameter.
screenWidth Double<!– System.Double –> This parameter is the screen width.
screenHeight Double<!– System.Double –> This parameter is the screen height.

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

ZoomToScale(Double, RectangleShape, GeographyUnit, Double, Double, Point)

<!– static –> This method returns a extent that has been zoomed into a certain scale.

Return Value

Return Type Description
RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This method returns a extent that has been zoomed into a certain scale.

Parameters

Name Type Description
targetScale Double<!– System.Double –> This parameter is the scale you want to zoom into.
worldExtent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> This parameter is the world extent you want zoomed into the scale.
worldExtentUnit GeographyUnit<!– ThinkGeo.MapSuite.WindowsPhoneCore.GeographyUnit –> This parameter is the geographic unit of the world extent parameter.
screenWidth Double<!– System.Double –> This parameter is the screen width.
screenHeight Double<!– System.Double –> This parameter is the screen height.
offsetScreenPoint Point<!– System.Windows.Point –> This parameter is the offsetScreenPoint.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.ExtentHelper –> 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

Protected Properties

Public Events

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