Products
Professional Services
Demos and Downloads
Help and Support
Products
Professional Services
Demos and Downloads
Help and Support
This is an old revision of the document!
<!– Class –> This static class exposes a number of helpful methods when dealing with extents.
*System.Object **ThinkGeo.MapSuite.Core.ExtentHelper
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() ![]() | RectangleShape, PointShape, Single, Single | 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. | |
![]() ![]() | RectangleShape, Feature, Single, Single | 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. | |
![]() ![]() | RectangleShape, Single, Single, Single, Single | This method returns an adjusted extent centered on a point. | |
![]() | Object | Object | |
![]() ![]() | IEnumerable<BaseShape> | This API gets the BoundingBox of a group of BaseShapes. | |
![]() ![]() | IEnumerable<Feature> | This API gets the BoundingBox of a group of Features. | |
![]() ![]() | RectangleShape, Single, Single | This method returns an adjusted extent based on the ratio of the screen width and height. | |
![]() | Object | ||
![]() ![]() | RectangleShape, Single, GeographyUnit | This method returns the current scale. | |
![]() ![]() | RectangleShape, Single, GeographyUnit, Single | This method returns the current scale. | |
![]() ![]() | RectangleShape, PointShape, PointShape, Single, Single | This method returns the number of pixels between two world points. | |
![]() ![]() | RectangleShape, Feature, Feature, Single, Single | This method returns the number of pixels between two features. | |
![]() | Object | ||
![]() ![]() | RectangleShape, ScreenPointF, ScreenPointF, Single, Single, GeographyUnit, DistanceUnit | This method returns the distance in world units between two screen points. | |
![]() ![]() | RectangleShape, Single, Single, Single, Single, Single, Single, GeographyUnit, DistanceUnit | This method returns the distance in world units between two screen points. | |
![]() ![]() | RectangleShape, Single, Int32 | This method returns a panned extent. | |
![]() ![]() | RectangleShape, PanDirection, Int32 | This method returns a panned extent. | |
![]() ![]() | RectangleShape, Single, Single, Single, GeographyUnit, MapResizeMode | This method returns a RectangleShape by resize parameters. | |
![]() ![]() | RectangleShape, GeographyUnit, Single, Single, ZoomLevelSet | This method returns an extent that is snapped to a zoom level in the provided zoom level set. | |
![]() ![]() | RectangleShape, Double, Double, Single, Single | This method returns screen coordinates from world coordinates. | |
![]() ![]() | RectangleShape, RectangleShape, Single, Single | This method returns Rectangle in screen coordinates from RectangleShape in world coordinates. | |
![]() ![]() | RectangleShape, PointShape, Single, Single | This method returns screen coordinates from world coordinates. | |
![]() ![]() | RectangleShape, Feature, Single, Single | This method returns screen coordinates from world coordinates. | |
![]() | Object | ||
![]() ![]() | RectangleShape, Single, Single, Single, Single | This method returns world coordinates from screen coordinates. | |
![]() ![]() | RectangleShape, ScreenPointF, Single, Single | This method returns world coordinates from screen coordinates. | |
![]() ![]() | RectangleShape, Int32 | This method returns a new extent that is zoomed in by the percentage provided. | |
![]() ![]() | RectangleShape, Int32, PointShape, Single, Single | This method returns an extent that is centered and zoomed in. | |
![]() ![]() | RectangleShape, Int32, Feature, Single, Single | This method returns an extent that is centered and zoomed. | |
![]() ![]() | RectangleShape, Int32, Single, Single, Single, Single | This method returns an extent that is centered and zoomed in. | |
![]() ![]() | RectangleShape, Single, Single, ScreenPointF, Int32 | This method returns an extent that is keeping the offsetScreenPoint constant and zoomed. | |
![]() ![]() | RectangleShape, Int32 | This method returns a new extent that is zoomed out by the percentage provided. | |
![]() ![]() | RectangleShape, Int32, PointShape, Single, Single | This method returns an extent that is centered and zoomed out. | |
![]() ![]() | RectangleShape, Int32, Feature, Single, Single | This method returns an extent that is centered and zoomed out. | |
![]() ![]() | RectangleShape, Int32, Single, Single, Single, Single | This method returns an extent that is centered and zoomed out. | |
![]() ![]() | RectangleShape, Single, Single, ScreenPointF, Int32 | This method returns an extent that is keeping the offsetScreenPoint constant and zoomed. | |
![]() ![]() | Double, RectangleShape, GeographyUnit, Single, Single, ScreenPointF | This method returns a extent that has been zoomed into a certain scale. | |
![]() ![]() | Double, RectangleShape, GeographyUnit, Single, Single | This method returns a extent that has been zoomed into a certain scale. |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Object | ||
![]() | Object |
Name | Return | DeclaringType | Summary |
---|
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|
<!– 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.
This overload allows you to pass in a world point as the center.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an adjusted extent centered on a point. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the current extent you want to center. |
worldPoint | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | This parameter is the world point you want to center on. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– 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.
This overload allows you to pass in a world point as the center.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an adjusted extent centered on a point. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the current extent you want to center. |
centerFeature | Feature<!– ThinkGeo.MapSuite.Core.Feature –> | This parameter is the world point you want to center on. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an adjusted extent centered on a point.
This overload allows you to pass in a screen point as the center.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an adjusted extent centered on a point. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the current extent you want to center. |
screenX | Single<!– System.Single –> | This parameter is the X coordinate on the screen to center on. |
screenY | Single<!– System.Single –> | This parameter is the Y coordinate on the screen to center on. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
Return Type | Description |
---|---|
Boolean<!– System.Boolean –> |
Name | Type | Description |
---|---|---|
obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
<!– static –> This API gets the BoundingBox of a group of BaseShapes.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | The BoundingBox that contains all of the shapes you passed in. |
Name | Type | Description |
---|---|---|
shapes | IEnumerable<BaseShape><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.Core.BaseShape} –> | The target group of BaseShapes to get the BoundingBox for. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This API gets the BoundingBox of a group of Features.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | The BoundingBox that contains all the features you passed in. |
Name | Type | Description |
---|---|---|
features | IEnumerable<Feature><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.Core.Feature} –> | The target group of Features to get the BoundingBox for. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an adjusted extent based on the ratio of the screen width and height.
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 Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an adjusted extent based on the ratio of the screen width and height. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent you want to adjust for drawing. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
Return Type | Description |
---|---|
Int32<!– System.Int32 –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
<!– static –> This method returns the current scale.
Return Type | Description |
---|---|
Double<!– System.Double –> | This method returns the current scale. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent you want to find the scale for. |
screenWidth | Single<!– System.Single –> | This parameter is the screen width. |
worldExtentUnit | GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This parameter is the unit of the world extent. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns the current scale.
Return Type | Description |
---|---|
Double<!– System.Double –> | This method returns the current scale. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent you want to find the scale for. |
screenWidth | Single<!– System.Single –> | This parameter is the screen width. |
worldExtentUnit | GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This parameter is the unit of the world extent. |
dpi | Single<!– System.Single –> | This parameter is the dpi of the world extent. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns the number of pixels between two world points.
Return Type | Description |
---|---|
Single<!– System.Single –> | This method returns the number of pixels between two world points. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
worldPoint1 | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | This parameter is the first point – the one you want to measure from. |
worldPoint2 | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | This parameter is the second point – the one you want to measure to. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns the number of pixels between two features.
Return Type | Description |
---|---|
Single<!– System.Single –> | This method returns the number of pixels between two features. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
worldPointFeature1 | Feature<!– ThinkGeo.MapSuite.Core.Feature –> | This parameter is the first feature – the one you want to measure from. |
worldPointFeature2 | Feature<!– ThinkGeo.MapSuite.Core.Feature –> | This parameter is the second feature – the one you want to measure to. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
Return Type | Description |
---|---|
Type<!– System.Type –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
<!– static –> This method returns the distance in world units between two screen points.
This overload allows you to pass in ScreenPointF as the points.
Return Type | Description |
---|---|
Double<!– System.Double –> | This method returns the distance in world units between two screen points. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
screenPoint1 | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | This is the screen point you want to measure from. |
screenPoint2 | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | This is the screen point you want to measure to. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
worldExtentUnit | GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This is the geographic unit of the world extent rectangle. |
distanceUnit | DistanceUnit<!– ThinkGeo.MapSuite.Core.DistanceUnit –> | This is the geographic unit you want the result to show in. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns the distance in world units between two screen points.
This overload allows you to pass in the X & Y for each point.
Return Type | Description |
---|---|
Double<!– System.Double –> |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
screenPoint1X | Single<!– System.Single –> | This parameter is the X of the point you want to measure from. |
screenPoint1Y | Single<!– System.Single –> | This parameter is the Y of the point you want to measure from. |
screenPoint2X | Single<!– System.Single –> | This parameter is the X of the point you want to measure to. |
screenPoint2Y | Single<!– System.Single –> | This parameter is the Y of the point you want to measure to. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
worldExtentUnit | GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This is the geographic unit of the world extent you passed in. |
distanceUnit | DistanceUnit<!– ThinkGeo.MapSuite.Core.DistanceUnit –> | This is the geographic unit you want the result to show in. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns a panned extent.
This overload allows you to pass in an angle and a percentage by which you want to pan.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns a panned extent. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent you want to pan. |
degree | Single<!– System.Single –> | 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.Core.ExtentHelper –> Go Back
<!– static –> This method returns a panned extent.
This overload allows you to pass in a direction and a percentage by which you want to pan.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns a panned extent. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent you want to pan. |
direction | PanDirection<!– ThinkGeo.MapSuite.Core.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.Core.ExtentHelper –> Go Back
<!– static –> This method returns a RectangleShape by resize parameters.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns a RectangleShape by resize parameters. |
Name | Type | Description |
---|---|---|
sourceExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | The rectangle shape before rezise |
sourceScreenWidth | Single<!– System.Single –> | The width of the source rectangle shape in screen coordinate |
targetScreenWidth | Single<!– System.Single –> | The width of the target rectangle shape in screen coordinate |
targetScreenHeight | Single<!– System.Single –> | The height of the target rectangle shape in screen coordinate |
mapUnit | GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | map unit which this rectangle shape used |
resizeType | MapResizeMode<!– ThinkGeo.MapSuite.Core.MapResizeMode –> | Represents resize type which can decide to use which way to resize. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is snapped to a zoom level in the provided zoom level set.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is snapped to a zoom level in the provided zoom level set. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent you want snapped. |
worldExtentUnit | GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This parameter is the geographic unit of the world extent parameter. |
screenWidth | Single<!– System.Single –> | This parameter is the screen width. |
screenHeight | Single<!– System.Single –> | This parameter is the screen height. |
zoomLevelSet | ZoomLevelSet<!– ThinkGeo.MapSuite.Core.ZoomLevelSet –> | This parameter is the set of zoom levels you want to snap to. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns screen coordinates from world coordinates.
This overload allows you to pass in world X & Y coordinates.
Return Type | Description |
---|---|
ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | This method returns screen coordinates from world coordinates. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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 | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns Rectangle in screen coordinates from RectangleShape in world coordinates.
Return Type | Description |
---|---|
Rectangle<!– System.Drawing.Rectangle –> | This method returns Rectangle in screen coordinates from RectangleShape in world coordinates. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
targetExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the rectangle shape in world coordinate you want converted to a rectangle in screen coordinate. |
currentExtentWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
currentExtentHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns screen coordinates from world coordinates.
Return Type | Description |
---|---|
ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | This method returns screen coordinates from world coordinates. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
worldPoint | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | This parameter is the world point you want converted to a screen point. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns screen coordinates from world coordinates.
Return Type | Description |
---|---|
ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | This method returns screen coordinates from world coordinates. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
worldPointFeature | Feature<!– ThinkGeo.MapSuite.Core.Feature –> | This parameter is the feature you want converted to a screen point. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
Return Type | Description |
---|---|
String<!– System.String –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
<!– static –> This method returns world coordinates from screen coordinates.
Return Type | Description |
---|---|
PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | This method returns world coordinates from screen coordinates. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
screenX | Single<!– System.Single –> | This parameter is the X of the point you want converted to world coordinates. |
screenY | Single<!– System.Single –> | This parameter is the Y of the point you want converted to world coordinates. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns world coordinates from screen coordinates.
Return Type | Description |
---|---|
PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | This method returns world coordinates from screen coordinates. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent. |
screenPoint | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | This parameter is the screen point you want converted to a world point. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns a new extent that is zoomed in by the percentage provided.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns a new extent that is zoomed in by the percentage provided. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is centered and zoomed in.
This overload allows you to pass in the height and width in screen coordinates, as well as a world point.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is centered and zoomed in. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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.Core.PointShape –> | This parameter is the world point you want the extent to be centered on. |
screenWidth | Single<!– System.Single –> | This parameter is the width in screen coordinates. |
screenHeight | Single<!– System.Single –> | This parameter is the height in screen coordinates. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is centered and zoomed.
This overload allows you to pass in the height and width in screen coordinatesm as well as a feature.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is centered and zoomed in. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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.Core.Feature –> | This parameter is the feature you want the extent to be centered on. |
screenWidth | Single<!– System.Single –> | This parameter is the width in screen coordinates. |
screenHeight | Single<!– System.Single –> | This parameter is the height in screen coordinates. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is centered and zoomed in.
This overload allows you to pass in the height and width in screen coordinates, as well as a screen X & Y.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is centered and zoomed in. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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 | Single<!– System.Single –> | This parameter is the screen X you want to center on. |
screenY | Single<!– System.Single –> | This parameter is the screen Y you want to center on. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to afterward call GetDrawingExtent.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is keeping the offsetScreenPoint constant and zoomed. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent that you want centered and zoomed. |
screenWidth | Single<!– System.Single –> | This parameter is the width in screen coordinates. |
screenHeight | Single<!– System.Single –> | This parameter is the height in screen coordinates. |
offsetScreenPoint | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | 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.Core.ExtentHelper –> Go Back
<!– static –> This method returns a new extent that is zoomed out by the percentage provided.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns a new extent that is zoomed out by the percentage provided. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is centered and zoomed out.
This overload allows you to pass in the height and width in screen coordinates, as well as a world point.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is centered and zoomed out. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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.Core.PointShape –> | This parameter is the world point you want the extent to be centered on. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is centered and zoomed out.
This overload allows you to pass in the height and width in screen coordinates, as well as a feature.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is centered and zoomed out. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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.Core.Feature –> | This parameter is the feature you want the extent to be centered on. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is centered and zoomed out.
This overload allows you to pass in the height and width in screen coordinates, as well as a screen X & Y.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterward.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is centered and zoomed out. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.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 | Single<!– System.Single –> | This parameter is the screen X you want to center on. |
screenY | Single<!– System.Single –> | This parameter is the screen Y you want to center on. |
screenWidth | Single<!– System.Single –> | This parameter is the width of the screen. |
screenHeight | Single<!– System.Single –> | This parameter is the height of the screen. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to afterward call GetDrawingExtent.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns an extent that is keeping the offsetScreenPoint constant and zoomed. |
Name | Type | Description |
---|---|---|
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent that you want centered and zoomed. |
screenWidth | Single<!– System.Single –> | This parameter is the width in screen coordinates. |
screenHeight | Single<!– System.Single –> | This parameter is the height in screen coordinates. |
offsetScreenPoint | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | 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.Core.ExtentHelper –> Go Back
<!– static –> This method returns a extent that has been zoomed into a certain scale.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns a extent that has been zoomed into a certain scale. |
Name | Type | Description |
---|---|---|
targetScale | Double<!– System.Double –> | This parameter is the scale you want to zoom into. |
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent you want zoomed into the scale. |
worldExtentUnit | GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This parameter is the geographic unit of the world extent parameter. |
screenWidth | Single<!– System.Single –> | This parameter is the screen width. |
screenHeight | Single<!– System.Single –> | This parameter is the screen height. |
offsetScreenPoint | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | This parameter is the offsetScreenPoint. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
<!– static –> This method returns a extent that has been zoomed into a certain scale.
Return Type | Description |
---|---|
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This method returns a extent that has been zoomed into a certain scale. |
Name | Type | Description |
---|---|---|
targetScale | Double<!– System.Double –> | This parameter is the scale you want to zoom into. |
worldExtent | RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> | This parameter is the world extent you want zoomed into the scale. |
worldExtentUnit | GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> | This parameter is the geographic unit of the world extent parameter. |
screenWidth | Single<!– System.Single –> | This parameter is the screen width. |
screenHeight | Single<!– System.Single –> | This parameter is the screen height. |
<!– ThinkGeo.MapSuite.Core.ExtentHelper –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.