ThinkGeo.MapSuite.Core.MapEngine
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.
This class is for generating maps.
Inheritance Hierarchy
Members Summary
Public Constructors
MapEngine()
Parameters
Protected Constructors
Public Methods
DrawStaticLayers(Int32,Int32,GeographyUnit)
Return Value
Parameters
DrawDynamicLayers(Int32,Int32,GeographyUnit)
Return Value
Parameters
DrawAdornmentLayers(Int32,Int32,GeographyUnit)
Return Value
Parameters
ZoomIn(Int32)
Return Value
Parameters
ZoomIntoCenter(Int32,PointShape,Single,Single)
Return Value
Type:Void
Description:None.
Parameters
ZoomIntoCenter(Int32,Feature,Single,Single)
Return Value
Parameters
ZoomIntoCenter(Int32,Single,Single,Single,Single)
Return Value
Type:Void
Description:None.
Parameters
ZoomOut(Int32)
Return Value
Type:Void
Description:None.
Parameters
ZoomOutToCenter(Int32,PointShape,Single,Single)
Return Value
Type:Void
Description:None.
Parameters
ZoomOutToCenter(Int32,Feature,Single,Single)
Return Value
Type:Void
Description:None.
Parameters
ZoomOutToCenter(Int32,Single,Single,Single,Single)
Return Value
Type:Void
Description:None.
Parameters
Pan(PanDirection,Int32)
Return Value
Type:Void
Description:None.
Parameters
Pan(Single,Int32)
Return Value
Type:Void
Description:None.
Parameters
ToScreenCoordinate(Double,Double,Single,Single)
Return Value
Parameters
ToScreenCoordinate(PointShape,Single,Single)
Return Value
Parameters
ToScreenCoordinate(Feature,Single,Single)
Return Value
Parameters
ToWorldCoordinate(Single,Single,Single,Single)
Return Value
Parameters
ToWorldCoordinate(ScreenPointF,Single,Single)
Return Value
Parameters
SnapToZoomLevel(GeographyUnit,Single,Single,ZoomLevelSet)
Return Value
Parameters
ZoomToScale(Double,GeographyUnit,Single,Single)
Return Value
Type:Void
Description:N/A
Parameters
FindStaticFeatureLayer(String)
Return Value
Parameters
FindStaticRasterLayer(String)
Return Value
Parameters
FindDynamicFeatureLayer(String)
Return Value
Parameters
FindDynamicRasterLayer(String)
Return Value
Parameters
GetDrawingExtent(Single,Single)
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
Parameters
OpenAllLayers()
This API allows you to open all of the layers (either static or dynamic).
Return Value
Type:Void
Description:N/A
Parameters
CloseAllLayers()
This API allows you close all of the layers (either static or dynamic).
Return Value
Type:Void
Description:N/A
Parameters
CenterAt(PointShape,Single,Single)
This API will update the CurrentExtent.
Return Value
Type:Void
Description:None.
Parameters
CenterAt(Feature,Single,Single)
This API will update the CurrentExtent.
Return Value
Type:Void
Description:None.
Parameters
CenterAt(Single,Single,Single,Single)
This API will update the CurrentExtent.
Return Value
Type:Void
Description:N/A
Parameters
GetScreenDistanceBetweenTwoWorldPoints(PointShape,PointShape,Single,Single)
Return Value
Parameters
GetScreenDistanceBetweenTwoWorldPoints(Feature,Feature,Single,Single)
Return Value
Parameters
GetWorldDistanceBetweenTwoScreenPoints(ScreenPointF,ScreenPointF,Single,Single,GeographyUnit,DistanceUnit)
Return Value
Parameters
GetCurrentScale(Single,GeographyUnit)
Return Value
Parameters
Draw(IEnumerable<Layer>,GeoImage,GeographyUnit)
Return Value
Parameters
Draw(IEnumerable<Layer>,Int32,Int32,GeographyUnit)
Return Value
Parameters
DrawStaticLayers(GeoImage,GeographyUnit)
Return Value
Parameters
DrawDynamicLayers(GeoImage,GeographyUnit)
Return Value
Parameters
DrawAdornmentLayers(GeoImage,GeographyUnit)
Return Value
Parameters
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters

ZoomIn(RectangleShape,Int32)
Return Value
Parameters

ZoomIntoCenter(RectangleShape,Int32,PointShape,Single,Single)
Return Value
Parameters

ZoomIntoCenter(RectangleShape,Int32,Feature,Single,Single)
Return Value
Parameters

ZoomIntoCenter(RectangleShape,Int32,Single,Single,Single,Single)
Return Value
Parameters

ZoomOut(RectangleShape,Int32)
Return Value
Parameters

ZoomOutToCenter(RectangleShape,Int32,PointShape,Single,Single)
Return Value
Parameters

ZoomOutToCenter(RectangleShape,Int32,Feature,Single,Single)
Return Value
Parameters

ZoomOutToCenter(RectangleShape,Int32,Single,Single,Single,Single)
Return Value
Parameters

Pan(RectangleShape,PanDirection,Int32)
Return Value
Parameters

Pan(RectangleShape,Single,Int32)
Return Value
Parameters

ToScreenCoordinate(RectangleShape,Double,Double,Single,Single)
Return Value
Parameters

ToScreenCoordinate(RectangleShape,PointShape,Single,Single)
Return Value
Parameters

ToScreenCoordinate(RectangleShape,Feature,Single,Single)
Return Value
Parameters

ToWorldCoordinate(RectangleShape,Single,Single,Single,Single)
Return Value
Parameters

ToWorldCoordinate(RectangleShape,ScreenPointF,Single,Single)
Return Value
Parameters

SnapToZoomLevel(RectangleShape,GeographyUnit,Single,Single,ZoomLevelSet)
Return Value
Parameters

ZoomToScale(Double,RectangleShape,GeographyUnit,Single,Single)
Return Value
Parameters

GetVersion()
Return Value
Parameters

GetDrawingExtent(RectangleShape,Single,Single)
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
Parameters

CenterAt(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.
Return Value
Parameters

CenterAt(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.
Return Value
Parameters

CenterAt(RectangleShape,Single,Single,Single,Single)
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.
Return Value
Parameters

GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,PointShape,PointShape,Single,Single)
Return Value
Parameters

GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,Feature,Feature,Single,Single)
Return Value
Parameters

GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,ScreenPointF,ScreenPointF,Single,Single,GeographyUnit,DistanceUnit)
Return Value
Parameters

GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,Single,Single,Single,Single,Single,Single,GeographyUnit,DistanceUnit)
Return Value
Type:Double
Description:N/A
Parameters

GetCurrentScale(RectangleShape,Single,GeographyUnit)
This Static API is used to calculate the scale based on the specified worldExtent and its corresponding ScreenWidth and MapUnit.
Return Value
Type:Double
Description:N/A
Parameters

GetBoundingBoxOfItems(IEnumerable<BaseShape>)
This API gets the BoundingBox of a group of BaseShapes.
Return Value
Parameters

GetBoundingBoxOfItems(IEnumerable<Feature>)
This API gets the BoundingBox of a group of Features.
Return Value
Parameters
Protected Methods
OnAdornmentLayersDrawing(AdornmentLayersDrawingEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnAdornmentLayersDrawn(AdornmentLayersDrawnEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnAdornmentLayerDrawing(AdornmentLayerDrawingEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnAdornmentLayerDrawn(AdornmentLayerDrawnEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnLayersDrawing(LayersDrawingEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnLayersDrawn(LayersDrawnEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnLayerDrawing(LayerDrawingEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnLayerDrawn(LayerDrawnEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
Canvas
Return Value
ShowLogo
Return Value
AdornmentLayers
This collection of Layers StaticLayers will be drawn when calling the DrawAdornmentLayers API.
Return Value
CurrentExtent
Return Value
StaticLayers
This collection of Layers StaticLayers will be drawn when calling the DrawStaticLayers API.
Return Value
DynamicLayers
This collection of Layers StaticLayers will be drawn when calling the DrawDynamicLayers API.
Return Value
BackgroundFillBrush
Return Value
Protected Properties
Public Events
LayersDrawing