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!
This class is for generating maps.
GetScreenDistanceBetweenTwoWorldPoints
GetScreenDistanceBetweenTwoWorldPoints
GetScreenDistanceBetweenTwoWorldPoints
GetScreenDistanceBetweenTwoWorldPoints
GetWorldDistanceBetweenTwoScreenPoints
GetWorldDistanceBetweenTwoScreenPoints
GetWorldDistanceBetweenTwoScreenPoints
Create a new instance of the MapEngine.
N/A
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.
None
Return Value
worldExtent
worldPoint
screenWidth
screenHeight
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.
None
Return Value
worldExtent
centerFeature
screenWidth
screenHeight
This is a static function that allows you to pass in a world rectangle, a point in screen coordinates to center on, and a height and width in screen units. The function will center the rectangle based on the screen point, then adjust the rectangle's ratio based on the height and width in screen coordinates.
None
Return Value
worldExtent
screenX
screenY
screenWidth
screenHeight
This is a function that allows you to pass a screen point to center on and a height and width in screen units. The function will update the current extent by centering on the point and adjusting its ratio based on the height and width in screen coordinates.
This API will update the CurrentExtent.
Return Value
screenX
screenY
screenWidth
screenHeight
This is a function that allows you to pass in a feature to center on, as well as a height and width in screen units. The function will center the CurrentExtent based on the specified feature and adjust its ratio based on the height and width in screen coordinates.
This API will update the CurrentExtent.
Return Value
centerFeature
screenWidth
screenHeight
This is a function that allows you to pass a world point to center on and a height and width in screen units. The function will update the current extent by centering on the point and adjusting its ratio based on the height and width in screen coordinates.
This API will update the CurrentExtent.
Return Value
worldPoint
screenWidth
screenHeight
This API allows you close all of the layers (either static or dynamic).
N/A
Return Value
Draw a group of layers on the specified “background” bitmap.
N/A
Return Value
layers
gdiPlusBitmap
mapUnit
Draw a group of layers and return a new image with the specified width and height.
N/A
Return Value
layers
width
height
mapUnit
Draw a group of layers on the specified “background” image.
N/A
Return Value
layers
image
mapUnit
Draw a group of AdornmentLayers on the specified “background” bitmap.
N/A
Return Value
gdiPlusBitmap
mapUnit
Draw a group of AdornmentLayers and return a new image with the specified width and height.
N/A
Return Value
width
height
mapUnit
Draw a group of AdornmentLayers on the specified “background” image.
N/A
Return Value
image
mapUnit
Draw a group of dynamic layers on the specified “background” bitmap.
N/A
Return Value
gdiPlusBitmap
mapUnit
Draw a group of dynamic layers and return a new image with the specified width and height.
N/A
Return Value
width
height
mapUnit
Draw a group of dynamic layers on the specified “background” image.
N/A
Return Value
image
mapUnit
Draw a group of static layers on the specified “background” bitmap.
N/A
Return Value
gdiPlusBitmap
mapUnit
Draw a group of static layers and return a new image with the specified width and height.
N/A
Return Value
width
height
mapUnit
Draw a group of static layers on the specified “background” image.
N/A
Return Value
image
mapUnit
N/A
N/A
Return Value
Find the feature layer by key (specified in the “name” parameter) within the collection of DynamicLayers.
N/A
Return Value
Find the raster layer by key (specified in the “name” parameter) within the collection of DynamicLayers.
N/A
Return Value
Finds a feature layer by key (specified in the “name” parameter) within the collection of StaticLayers.
N/A
Return Value
Find the raster layer by key (specified in the “name” parameter) within the collection of StaticLayers.
N/A
Return Value
This API gets the BoundingBox of a group of Features.
N/A
Return Value
features
This API gets the BoundingBox of a group of BaseShapes.
N/A
Return Value
shapes
This Static API is used to calculate the scale based on the specified worldExtent and its corresponding ScreenWidth and MapUnit.
N/A
Return Value
worldExtent
screenWidth
mapUnit
Get the current Scale responding to the CurrentExtent.
N/A
Return Value
screenWidth
mapUnit
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. This function takes a height and width in screen coordinates, then looks at a world extent passed, and returns an adjusted world rectangle so that the ratio to height and width in screen and world coordinates match.
Return Value
worldExtent
screenWidth
screenHeight
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 Value
screenWidth
screenHeight
N/A
N/A
Return Value
This method returns the number of pixels between two world points using the CurrentExtent as reference.
None
Return Value
worldPointFeature1
worldPointFeature2
screenWidth
screenHeight
This method returns the number of pixels between two world points.
None
Return Value
worldExtent
worldPoint1
worldPoint2
screenWidth
screenHeight
This method returns the number of pixels between two world points using the CurrentExtent as reference.
None
Return Value
worldPoint1
worldPoint2
screenWidth
screenHeight
This method returns the number of pixels between two world points.
None
Return Value
worldExtent
worldPointFeature1
worldPointFeature2
screenWidth
screenHeight
N/A
N/A
Return Value
Get the current MapSuiteCore.dll file version.
N/A
Return Value
This method returns the distance in world units between two screen points by using the CurrentExtent as a reference.
None
Return Value
screenPoint1
screenPoint2
screenWidth
screenHeight
mapUnit
distanceUnit
This method returns the distance in world units between two screen points.
None
Return Value
worldExtent
screenPoint1
screenPoint2
screenWidth
screenHeight
worldExtentUnit
distanceUnit
This method returns the distance in wold units between two screen points.
N/A
Return Value
worldExtent
screenPoint1X
screenPoint1Y
screenPoint2X
screenPoint2Y
screenWidth
screenHeight
worldExtentUnit
distanceUnit
This method is a static API to get information about a group of passed-in features with the specified returningColumns, in the format of a DataTable.
N/A
Return Value
features
returningColumnNames
This API allows you to open all of the layers (either static or dynamic).
N/A
Return Value
This method returns a panned extent.
worldExtent
direction
percentage
Update the CurrentExtent by using a panning operation.
None
Return Value
panDirection
percentage
This method updates the CurrentExtent by using a panning operation.
None
Return Value
degree
percentage
This method returns a panned extent.
worldExtent
degree
percentage
This method returns an extent that is snapped to a zoom level in the provided zoom level set.
None
Return Value
worldExtent
worldExtentUnit
screenWidth
screenHeight
zoomLevelSet
This method updates the CurrentExtent by snapping to a zoom level in the provided zoom level set.
None
Return Value
worldExtentUnit
screenWidth
screenHeight
zoomLevelSet
This method returns screen coordinates from the specified world coordinate pointFeature, based on the CurrentExtent.
None
Return Value
worldPointFeature
screenWidth
screenHeight
This method returns screen coordinates from the specified world coordinates, based on the CurrentExtent.
None
Return Value
worldX
worldY
screenWidth
screenHeight
This method returns screen coordinates from world coordinates.
None
Return Value
worldExtent
worldX
worldY
screenWidth
screenHeight
This method returns screen coordinates from world coordinates.
None
Return Value
worldExtent
worldPoint
screenWidth
screenHeight
This method returns screen coordinates from world coordinates.
None
Return Value
worldExtent
worldPointFeature
screenWidth
screenHeight
This method returns screen coordinates from the specified world coordinates, based on the CurrentExtent.
None
Return Value
worldPoint
screenWidth
screenHeight
N/A
N/A
Return Value
This method returns world coordinates from screen coordinates.
None
Return Value
worldExtent
screenX
screenY
screenWidth
screenHeight
This method returns world coordinates from screen coordinates.
None
Return Value
worldExtent
screenPoint
screenWidth
screenHeight
This method returns world coordinates from screen coordinates, based on the CurrentExtent.
None
Return Value
screenX
screenY
screenWidth
screenHeight
This method returns world coordinates from screen coordinates, based on the CurrentExtent.
None
Return Value
screenPoint
screenWidth
screenHeight
This method returns a new extent that is zoomed in by the percentage provided.
None
Return Value
worldExtent
percentage
This method updates the CurrentExtent that is zoomed in by the percentage provided.
None
Return Value
percentage
This method returns an extent that is centered and zoomed in.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
worldExtent
percentage
worldPoint
screenWidth
screenHeight
This method returns an extent that is centered and zoomed in.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
worldExtent
percentage
screenX
screenY
screenWidth
screenHeight
This method updates the CurrentExtent based on a calculated rectangle that is centered and zoomed in.
The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
percentage
screenX
screenY
screenWidth
screenHeight
This method returns an extent that is centered and zoomed in.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
percentage
centerFeature
screenWidth
screenHeight
This method will update the CurrentExtent by using the ZoomIntoCenter operation.
The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
percentage
worldPoint
screenWidth
screenHeight
This method returns a new extent that is zoomed in by the percentage provided.
None
Return Value
worldExtent
percentage
centerFeature
screenWidth
screenHeight
This method returns a new extent that is zoomed out by the percentage provided.
None
Return Value
worldExtent
percentage
This method will update the CurrentExtent by using the ZoomOut operation.
None
Return Value
percentage
This method returns an extent that is centered and zoomed out.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
worldExtent
percentage
screenX
screenY
screenWidth
screenHeight
This method returns an extent that is centered and zoomed out.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
worldExtent
percentage
centerFeature
screenWidth
screenHeight
This method returns an extent that is centered and zoomed out.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
worldExtent
percentage
worldPoint
screenWidth
screenHeight
This method updates the CurrentExtent by using the ZoomOutToCenter operation.
The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
percentage
screenX
screenY
screenWidth
screenHeight
This method updates the CurrentExtent by using the ZoomOutToCenter operation.
The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
percentage
centerFeature
screenWidth
screenHeight
This method updates the CurrentExtent by using the ZoomOutToCenter operation.
The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
Return Value
percentage
worldPoint
screenWidth
screenHeight
This method updates the CurrentExtent by zooming to a certain scale.
None
Return Value
targetScale
worldExtentUnit
screenWidth
screenHeight
This method returns a extent that has been zoomed into a certain scale.
None
Return Value
targetScale
worldExtent
worldExtentUnit
screenWidth
screenHeight
N/A
N/A
Return Value
N/A
N/A
Return Value
This event is raised before an AdornmentLayer is drawn.
N/A
Return Value
e
This event is raised after an AdornmentLayer is drawn.
N/A
Return Value
e
This event is raised before AdornmentLayers are drawn.
N/A
Return Value
e
This event is raised after AdornmentLayers are drawn.
N/A
Return Value
e
This event is raised before a Layer is drawn.
N/A
Return Value
e
This event is raised after a Layer is drawn.
N/A
Return Value
This event is raised before Layers are drawn.
N/A
Return Value
e
This event is raised after Layers are drawn.
N/A
Return Value
e
This property holds a collection of AdornmentLayers to be drawn on the MapEngine.
This collection of Layers StaticLayers will be drawn when calling the DrawAdornmentLayers API.
Return Type:ThinkGeo.MapSuite.Core.GeoCollection<T>[[ThinkGeo.MapSuite.Core.AdornmentLayer, MapSuiteCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null|GeoCollection<T>]]
Gets or sets the GeoBrush for the background of the MapEngine.
N/A
Gets and sets the GeoCanvas used to draw the Layers.
N/A
This property gets or sets the current extent of the MapEngine.
The current extent is the rectangle that is currently being shown on the MapEngine.
Return Type:RectangleShape
This property holds a group of Layers to be drawn on the MapEngine.
This collection of Layers StaticLayers will be drawn when calling the DrawDynamicLayers API.
Return Type:ThinkGeo.MapSuite.Core.GeoCollection<T>[[ThinkGeo.MapSuite.Core.Layer, MapSuiteCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null|GeoCollection<T>]]
This property specifies whether the logo is shown on the Map or not.
N/A
Return Type:Boolean
This property holds a group of Layers to be drawn on the MapEngine.
This collection of Layers StaticLayers will be drawn when calling the DrawStaticLayers API.
Return Type:ThinkGeo.MapSuite.Core.GeoCollection<T>[[ThinkGeo.MapSuite.Core.Layer, MapSuiteCore, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null|GeoCollection<T>]]
This event is raised before an AdornmentLayer is drawn.
This event is raised after an AdornmentLayer is drawn.
This event is raised before AdornmentLayers are drawn.
This event is raised after AdornmentLayers are drawn.
This event is raised before a Layer is drawn.
This event is raised after a Layer is drawn.
This event is raised before Layers are drawn.
This event is raised after Layers are drawn.
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.