This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo.mapsuite.core.mapengine [2015/09/21 01:07] admin |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ThinkGeo.MapSuite.Core.MapEngine ====== | ||
- | This class is for generating maps. | ||
- | ===== Inheritance Hierarchy ===== | ||
- | *System.Object | ||
- | ***ThinkGeo.MapSuite.Core.MapEngine** | ||
- | ===== Members Summary ===== | ||
- | ==== Public Constructors ==== | ||
- | ** {{wiki:PublicMethod.gif|}} MapEngine() ** | ||
- | |||
- | Create a new instance of the MapEngine. | ||
- | == Remarks == | ||
- | N/A | ||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ==== Protected Constructors ==== | ||
- | ==== Public Methods ==== | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomOutToCenter(Int32,Single,Single,Single,Single) ** | ||
- | |||
- | This method updates the CurrentExtent by using the ZoomOutToCenter operation. | ||
- | == Remarks == | ||
- | The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom out. | ||
- | |||
- | * //screenX// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen X you want to center on. | ||
- | |||
- | * //screenY// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen Y you want to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} Pan(PanDirection,Int32) ** | ||
- | |||
- | Update the CurrentExtent by using a panning operation. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //panDirection// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PanDirection|PanDirection]] | ||
- | * Description:This parameter is the direction you want to pan. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to pan. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} Pan(Single,Int32) ** | ||
- | |||
- | This method updates the CurrentExtent by using a panning operation. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //degree// | ||
- | * Type:Single | ||
- | * Description:This parameter is the angle in degrees in which you want to pan. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to pan. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ToScreenCoordinate(Double,Double,Single,Single) ** | ||
- | |||
- | This method returns screen coordinates from the specified world coordinates, based on the CurrentExtent. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This method returns screen coordinates from the specified world coordinates, based on the CurrentExtent. | ||
- | |||
- | == Parameters == | ||
- | * //worldX// | ||
- | * Type:Double | ||
- | * Description:This parameter is the world point X you want converted to a screen point. | ||
- | |||
- | * //worldY// | ||
- | * Type:Double | ||
- | * Description:This parameter is the world point Y you want converted to a screen point. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen for the CurrentExtent. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen for the CurrentExtent. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ToScreenCoordinate(PointShape,Single,Single) ** | ||
- | |||
- | This method returns screen coordinates from the specified world coordinates, based on the CurrentExtent. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This method returns screen coordinates from the specified world coordinates, based on the CurrentExtent. | ||
- | |||
- | == Parameters == | ||
- | * //worldPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the world point you want converted to a screen point. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen for the CurrentExtent. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen for the CurrentExtent. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ToScreenCoordinate(Feature,Single,Single) ** | ||
- | |||
- | This method returns screen coordinates from the specified world coordinate pointFeature, based on the CurrentExtent. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This method returns screen coordinates from the specified world coordinate pointFeature, based on the CurrentExtent. | ||
- | |||
- | == Parameters == | ||
- | * //worldPointFeature// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the world coordinate pointFeature you want converted to a screen point. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen for the CurrentExtent. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen for the CurrentExtent. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ToWorldCoordinate(Single,Single,Single,Single) ** | ||
- | |||
- | This method returns world coordinates from screen coordinates, based on the CurrentExtent. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This method returns world coordinates from screen coordinates, based on the CurrentExtent. | ||
- | |||
- | == Parameters == | ||
- | * //screenX// | ||
- | * Type:Single | ||
- | * Description:This parameter is the X of the point you want converted to world coordinates. | ||
- | |||
- | * //screenY// | ||
- | * Type:Single | ||
- | * Description:This parameter is the Y of the point you want converted to world coordinates. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ToWorldCoordinate(ScreenPointF,Single,Single) ** | ||
- | |||
- | This method returns world coordinates from screen coordinates, based on the CurrentExtent. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This method returns world coordinates from screen coordinates, based on the CurrentExtent. | ||
- | |||
- | == Parameters == | ||
- | * //screenPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This parameter is the point you want converted to world coordinates. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} SnapToZoomLevel(GeographyUnit,Single,Single,ZoomLevelSet) ** | ||
- | |||
- | This method updates the CurrentExtent by snapping to a zoom level in the provided zoom level set. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:This method updates the CurrentExtent by snapping to a zoom level in the provided zoom level set. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtentUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter is the geographic unit of the CurrentExtent. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen width. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen height. | ||
- | |||
- | * //zoomLevelSet// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ZoomLevelSet|ZoomLevelSet]] | ||
- | * Description:This parameter is the set of zoom levels you want to snap to. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomToScale(Double,GeographyUnit,Single,Single) ** | ||
- | |||
- | This method updates the CurrentExtent by zooming to a certain scale. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //targetScale// | ||
- | * Type:Double | ||
- | * Description:This parameter is the scale you want to zoom into. | ||
- | |||
- | * //worldExtentUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter is the geographic unit of the CurrentExtent. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen width. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen height. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} FindStaticFeatureLayer(String) ** | ||
- | |||
- | Finds a feature layer by key (specified in the "name" parameter) within the collection of StaticLayers. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.FeatureLayer|FeatureLayer]] | ||
- | * Description:The corresponding FeatureLayer with the specified key in the MapControl. | ||
- | |||
- | == Parameters == | ||
- | * //name// | ||
- | * Type:String | ||
- | * Description:The key to find the final result feature layer. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} FindStaticRasterLayer(String) ** | ||
- | |||
- | Find the raster layer by key (specified in the "name" parameter) within the collection of StaticLayers. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RasterLayer|RasterLayer]] | ||
- | * Description:The corresponding RasterLayer with the passing specified in the MapControl. | ||
- | |||
- | == Parameters == | ||
- | * //name// | ||
- | * Type:String | ||
- | * Description:The key to find the final result raster layer. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} FindDynamicFeatureLayer(String) ** | ||
- | |||
- | Find the feature layer by key (specified in the "name" parameter) within the collection of DynamicLayers. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.FeatureLayer|FeatureLayer]] | ||
- | * Description:The corresponding FeatureLayer with the specified key in the MapControl. | ||
- | |||
- | == Parameters == | ||
- | * //name// | ||
- | * Type:String | ||
- | * Description:The key to find the final result feature layer. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} FindDynamicRasterLayer(String) ** | ||
- | |||
- | Find the raster layer by key (specified in the "name" parameter) within the collection of DynamicLayers. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RasterLayer|RasterLayer]] | ||
- | * Description:The corresponding RasterLayer with the specified key in the MapControl. | ||
- | |||
- | == Parameters == | ||
- | * //name// | ||
- | * Type:String | ||
- | * Description:The key to find the final result raster layer. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} GetDrawingExtent(Single,Single) ** | ||
- | |||
- | 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 == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an adjusted extent based on the ratio of the screen width and height. | ||
- | |||
- | == Parameters == | ||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} OpenAllLayers() ** | ||
- | |||
- | This API allows you to open all of the layers (either static or dynamic). | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} CloseAllLayers() ** | ||
- | |||
- | This API allows you close all of the layers (either static or dynamic). | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} CenterAt(PointShape,Single,Single) ** | ||
- | |||
- | 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. | ||
- | == Remarks == | ||
- | This API will update the CurrentExtent. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //worldPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the world point you want to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} CenterAt(Feature,Single,Single) ** | ||
- | |||
- | 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. | ||
- | == Remarks == | ||
- | This API will update the CurrentExtent. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //centerFeature// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the world point feature you want to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} CenterAt(Single,Single,Single,Single) ** | ||
- | |||
- | 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. | ||
- | == Remarks == | ||
- | This API will update the CurrentExtent. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //screenX// | ||
- | * Type:Single | ||
- | * Description:This parameter is the X coordinate on the screen to center on. | ||
- | |||
- | * //screenY// | ||
- | * Type:Single | ||
- | * Description:This parameter is the Y coordinate on the screen to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} GetScreenDistanceBetweenTwoWorldPoints(PointShape,PointShape,Single,Single) ** | ||
- | |||
- | This method returns the number of pixels between two world points using the CurrentExtent as reference. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Single | ||
- | * Description:This method returns the number of pixels between two world points. | ||
- | |||
- | == Parameters == | ||
- | * //worldPoint1// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the first point -- the one you want to measure from. | ||
- | |||
- | * //worldPoint2// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the second point -- the one you want to measure to. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} GetScreenDistanceBetweenTwoWorldPoints(Feature,Feature,Single,Single) ** | ||
- | |||
- | This method returns the number of pixels between two world points using the CurrentExtent as reference. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Single | ||
- | * Description:This method returns the number of pixels between two world points. | ||
- | |||
- | == Parameters == | ||
- | * //worldPointFeature1// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the first pointFeture -- the one you want to measure from. | ||
- | |||
- | * //worldPointFeature2// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the second pointFeature -- the one you want to measure to. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} GetWorldDistanceBetweenTwoScreenPoints(ScreenPointF,ScreenPointF,Single,Single,GeographyUnit,DistanceUnit) ** | ||
- | |||
- | This method returns the distance in world units between two screen points by using the CurrentExtent as a reference. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Double | ||
- | * Description:This method returns the distance in world units between two screen points. | ||
- | |||
- | == Parameters == | ||
- | * //screenPoint1// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This is the screen point you want to measure from. | ||
- | |||
- | * //screenPoint2// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This is the screen point you want to measure to. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | * //distanceUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.DistanceUnit|DistanceUnit]] | ||
- | * Description:This is the geographic unit you want the result to show in. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} GetCurrentScale(Single,GeographyUnit) ** | ||
- | |||
- | Get the current Scale responding to the CurrentExtent. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Double | ||
- | * Description:The calculated scale based on the CurrentExtent. | ||
- | |||
- | == Parameters == | ||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter specifies the screen width responding to the CurrentExtent. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} Draw(IEnumerable<Layer>,GeoImage,GeographyUnit) ** | ||
- | |||
- | Draw a group of layers on the specified "background" image. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:The resulting image after drawing the target layers on the specified "background" image. | ||
- | |||
- | == Parameters == | ||
- | * //layers// | ||
- | * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.Layer|Layer]]> | ||
- | * Description:This parameter specifies the target layers to be drawn. | ||
- | |||
- | * //image// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:This parameter specifies the "background" image of the returning image. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} Draw(IEnumerable<Layer>,Int32,Int32,GeographyUnit) ** | ||
- | |||
- | Draw a group of layers and return a new image with the specified width and height. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:The resulting image after drawing the target layers based on the specified width and height. | ||
- | |||
- | == Parameters == | ||
- | * //layers// | ||
- | * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.Layer|Layer]]> | ||
- | * Description:This parameter specifies the target layers to be drawn. | ||
- | |||
- | * //width// | ||
- | * Type:Int32 | ||
- | * Description:This parameter specifies the width of the returning image. | ||
- | |||
- | * //height// | ||
- | * Type:Int32 | ||
- | * Description:This parameter specifies the height of the returning image. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} DrawStaticLayers(GeoImage,GeographyUnit) ** | ||
- | |||
- | Draw a group of static layers on the specified "background" image. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:The resulting image after drawing the group of static layers on the specified "background" image. | ||
- | |||
- | == Parameters == | ||
- | * //image// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:This parameter specifies the "background" image of the returning image. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} DrawDynamicLayers(GeoImage,GeographyUnit) ** | ||
- | |||
- | Draw a group of dynamic layers on the specified "background" image. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:The resulting image after drawing the group of dynamic layers on the specified "background" image. | ||
- | |||
- | == Parameters == | ||
- | * //image// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:This parameter specifies the "background" image of the returning image. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} DrawAdornmentLayers(GeoImage,GeographyUnit) ** | ||
- | |||
- | Draw a group of AdornmentLayers on the specified "background" image. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:The resulting image after drawing the group of AdornmentLayers on the specified "background" image. | ||
- | |||
- | == Parameters == | ||
- | * //image// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:This parameter specifies the "background" image of the returning image. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} DrawStaticLayers(Int32,Int32,GeographyUnit) ** | ||
- | |||
- | Draw a group of static layers and return a new image with the specified width and height. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:The resulting image after drawing the group of static layers based on the specified width and height. | ||
- | |||
- | == Parameters == | ||
- | * //width// | ||
- | * Type:Int32 | ||
- | * Description:This parameter specifies the width of the returning image. | ||
- | |||
- | * //height// | ||
- | * Type:Int32 | ||
- | * Description:This parameter specifies the height of the returning image. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} DrawDynamicLayers(Int32,Int32,GeographyUnit) ** | ||
- | |||
- | Draw a group of dynamic layers and return a new image with the specified width and height. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:The resulting image after drawing the group of dynamic layers based on the specified width and height. | ||
- | |||
- | == Parameters == | ||
- | * //width// | ||
- | * Type:Int32 | ||
- | * Description:This parameter specifies the width of the returning image. | ||
- | |||
- | * //height// | ||
- | * Type:Int32 | ||
- | * Description:This parameter specifies the height of the returning image. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} DrawAdornmentLayers(Int32,Int32,GeographyUnit) ** | ||
- | |||
- | Draw a group of AdornmentLayers and return a new image with the specified width and height. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoImage|GeoImage]] | ||
- | * Description:The resulting image after drawing the group of AdornmentLayers based on the specified width and height. | ||
- | |||
- | == Parameters == | ||
- | * //width// | ||
- | * Type:Int32 | ||
- | * Description:This parameter specifies the width of the returning image. | ||
- | |||
- | * //height// | ||
- | * Type:Int32 | ||
- | * Description:This parameter specifies the height of the returning image. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the MapUnit used in the current map. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomIn(Int32) ** | ||
- | |||
- | This method updates the CurrentExtent that is zoomed in by the percentage provided. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:This method updates the CurrentExtent that is zoomed in by the percentage provided. | ||
- | |||
- | == Parameters == | ||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom in. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomIntoCenter(Int32,PointShape,Single,Single) ** | ||
- | |||
- | This method will update the CurrentExtent by using the ZoomIntoCenter operation. | ||
- | == Remarks == | ||
- | The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom in. | ||
- | |||
- | * //worldPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the world point you want the extent to be centered on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width in screen coordinates. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height in screen coordinates. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomIntoCenter(Int32,Feature,Single,Single) ** | ||
- | |||
- | This method returns an extent that is centered and zoomed in. | ||
- | == Remarks == | ||
- | The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:This method returns an extent that is centered and zoomed in. | ||
- | |||
- | == Parameters == | ||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom in. | ||
- | |||
- | * //centerFeature// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the world point you want the extent to be centered on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width in screen coordinates. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height in screen coordinates. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomIntoCenter(Int32,Single,Single,Single,Single) ** | ||
- | |||
- | This method updates the CurrentExtent based on a calculated rectangle that is centered and zoomed in. | ||
- | == Remarks == | ||
- | The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom in. | ||
- | |||
- | * //screenX// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen X you want to center on. | ||
- | |||
- | * //screenY// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen Y you want to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomOut(Int32) ** | ||
- | |||
- | This method will update the CurrentExtent by using the ZoomOut operation. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomOutToCenter(Int32,PointShape,Single,Single) ** | ||
- | |||
- | This method updates the CurrentExtent by using the ZoomOutToCenter operation. | ||
- | == Remarks == | ||
- | The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom out. | ||
- | |||
- | * //worldPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the world point you want the extent to be centered on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ZoomOutToCenter(Int32,Feature,Single,Single) ** | ||
- | |||
- | This method updates the CurrentExtent by using the ZoomOutToCenter operation. | ||
- | == Remarks == | ||
- | The CurrentExtent will be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:None. | ||
- | |||
- | == Parameters == | ||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom out. | ||
- | |||
- | * //centerFeature// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the world point Feature you want the extent to be centered on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} ToString() ** | ||
- | |||
- | N/A | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:String | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ||
- | |||
- | N/A | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Boolean | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //obj// | ||
- | * Type:Object | ||
- | * Description:N/A | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ||
- | |||
- | N/A | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Int32 | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}} GetType() ** | ||
- | |||
- | N/A | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Type | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomOutToCenter(RectangleShape,Int32,Single,Single,Single,Single) ** | ||
- | |||
- | This method returns an extent that is centered and zoomed out. | ||
- | == Remarks == | ||
- | The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an extent that is centered and zoomed out. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to center and zoom. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom out. | ||
- | |||
- | * //screenX// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen X you want to center on. | ||
- | |||
- | * //screenY// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen Y you want to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} Pan(RectangleShape,PanDirection,Int32) ** | ||
- | |||
- | This method returns a panned extent. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns a panned extent. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to pan. | ||
- | |||
- | * //direction// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PanDirection|PanDirection]] | ||
- | * Description:This parameter is the direction you want to pan. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to pan. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} Pan(RectangleShape,Single,Int32) ** | ||
- | |||
- | This method returns a panned extent. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns a panned extent. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to pan. | ||
- | |||
- | * //degree// | ||
- | * Type:Single | ||
- | * Description:This parameter is the angle in degrees in which you want to pan. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to pan. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ToScreenCoordinate(RectangleShape,Double,Double,Single,Single) ** | ||
- | |||
- | This method returns screen coordinates from world coordinates. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This method returns screen coordinates from world coordinates. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //worldX// | ||
- | * Type:Double | ||
- | * Description:This parameter is the world X you want converted to screen points. | ||
- | |||
- | * //worldY// | ||
- | * Type:Double | ||
- | * Description:This parameter is the world Y you want converted to screen points. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ToScreenCoordinate(RectangleShape,PointShape,Single,Single) ** | ||
- | |||
- | This method returns screen coordinates from world coordinates. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This method returns screen coordinates from world coordinates. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //worldPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the world point you want converted to a screen point. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ToScreenCoordinate(RectangleShape,Feature,Single,Single) ** | ||
- | |||
- | This method returns screen coordinates from world coordinates. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This method returns screen coordinates from world coordinates. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //worldPointFeature// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the world point feature you want converted to a screen point. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ToWorldCoordinate(RectangleShape,Single,Single,Single,Single) ** | ||
- | |||
- | This method returns world coordinates from screen coordinates. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This method returns world coordinates from screen coordinates. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //screenX// | ||
- | * Type:Single | ||
- | * Description:This parameter is the X coordinate of the point you want converted to world coordinates. | ||
- | |||
- | * //screenY// | ||
- | * Type:Single | ||
- | * Description:This parameter is the Y coordinate of the point you want converted to world coordinates. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ToWorldCoordinate(RectangleShape,ScreenPointF,Single,Single) ** | ||
- | |||
- | This method returns world coordinates from screen coordinates. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This method returns world coordinates from screen coordinates. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //screenPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This parameter is the screen point you want converted to a world point. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} SnapToZoomLevel(RectangleShape,GeographyUnit,Single,Single,ZoomLevelSet) ** | ||
- | |||
- | This method returns an extent that is snapped to a zoom level in the provided zoom level set. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an extent that is snapped to a zoom level in the provided zoom level set. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want snapped. | ||
- | |||
- | * //worldExtentUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter is the geographic unit of the world extent parameter. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen width. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen height. | ||
- | |||
- | * //zoomLevelSet// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ZoomLevelSet|ZoomLevelSet]] | ||
- | * Description:This parameter is the set of zoom levels you want to snap to. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomToScale(Double,RectangleShape,GeographyUnit,Single,Single) ** | ||
- | |||
- | This method returns a extent that has been zoomed into a certain scale. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns a extent that has been zoomed into a certain scale. | ||
- | |||
- | == Parameters == | ||
- | * //targetScale// | ||
- | * Type:Double | ||
- | * Description:This parameter is the scale you want to zoom into. | ||
- | |||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want zoomed into the scale. | ||
- | |||
- | * //worldExtentUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter is the geographic unit of the world extent parameter. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen width. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen height. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetVersion() ** | ||
- | |||
- | Get the current MapSuiteCore.dll file version. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:String | ||
- | * Description:A string representing the file version of MapSuiteCore.dll. | ||
- | |||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetDrawingExtent(RectangleShape,Single,Single) ** | ||
- | |||
- | 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. 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 == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an adjusted extent based on the ratio of the screen width and height. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to adjust for drawing. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an adjusted extent centered on a point. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the current extent you want to center. | ||
- | |||
- | * //worldPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the world point you want to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an adjusted extent centered on a point. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the current extent you want to center. | ||
- | |||
- | * //centerFeature// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the world point feature you want to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} 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. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an adjusted extent centered on a point. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the current extent you want to center. | ||
- | |||
- | * //screenX// | ||
- | * Type:Single | ||
- | * Description:This parameter is the X coordinate on the screen to center to. | ||
- | |||
- | * //screenY// | ||
- | * Type:Single | ||
- | * Description:This parameter is the Y coordinate on the screen to center to. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,PointShape,PointShape,Single,Single) ** | ||
- | |||
- | This method returns the number of pixels between two world points. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Single | ||
- | * Description:This method returns the number of pixels between two world points. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //worldPoint1// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the first point -- the one you want to measure from. | ||
- | |||
- | * //worldPoint2// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the second point -- the one you want to measure to. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,Feature,Feature,Single,Single) ** | ||
- | |||
- | This method returns the number of pixels between two world points. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Single | ||
- | * Description:This method returns the number of pixels between two world points. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //worldPointFeature1// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the first point Feature -- the one you want to measure from. | ||
- | |||
- | * //worldPointFeature2// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the second point Feature -- the one you want to measure to. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,ScreenPointF,ScreenPointF,Single,Single,GeographyUnit,DistanceUnit) ** | ||
- | |||
- | This method returns the distance in world units between two screen points. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:Double | ||
- | * Description:This method returns the distance in wold units between two screen points. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //screenPoint1// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This is the screen point you want to measure from. | ||
- | |||
- | * //screenPoint2// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.ScreenPointF|ScreenPointF]] | ||
- | * Description:This is the screen point you want to measure to. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | * //worldExtentUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This is the geographic unit of the world extent rectangle. | ||
- | |||
- | * //distanceUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.DistanceUnit|DistanceUnit]] | ||
- | * Description:This is the geographic unit you want the result to show in. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,Single,Single,Single,Single,Single,Single,GeographyUnit,DistanceUnit) ** | ||
- | |||
- | This method returns the distance in wold units between two screen points. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Double | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent. | ||
- | |||
- | * //screenPoint1X// | ||
- | * Type:Single | ||
- | * Description:This parameter is the X of the point you want to measure from. | ||
- | |||
- | * //screenPoint1Y// | ||
- | * Type:Single | ||
- | * Description:This parameter is the Y of the point you want to measure from. | ||
- | |||
- | * //screenPoint2X// | ||
- | * Type:Single | ||
- | * Description:This parameter is the X of the point you want to measure to. | ||
- | |||
- | * //screenPoint2Y// | ||
- | * Type:Single | ||
- | * Description:This parameter is the Y of the point you want to measure to. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | * //worldExtentUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This is the geographic unit of the world extent you passed in. | ||
- | |||
- | * //distanceUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.DistanceUnit|DistanceUnit]] | ||
- | * Description:This is the geographic unit you want the result to show in. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetCurrentScale(RectangleShape,Single,GeographyUnit) ** | ||
- | |||
- | This Static API is used to calculate the scale based on the specified worldExtent and its corresponding ScreenWidth and MapUnit. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Double | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter specifies the worldExtent used to calculate the current scale. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter specifies the screenWidth corresponding to the worldExtent. | ||
- | |||
- | * //mapUnit// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeographyUnit|GeographyUnit]] | ||
- | * Description:This parameter specifies the unit for the extent, the result will be different if choose DecimalDegree as Unit and Meter as Unit. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetBoundingBoxOfItems(IEnumerable<BaseShape>) ** | ||
- | |||
- | This API gets the BoundingBox of a group of BaseShapes. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:The BoundingBox that contains all the shapes you passed in. | ||
- | |||
- | == Parameters == | ||
- | * //shapes// | ||
- | * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.BaseShape|BaseShape]]> | ||
- | * Description:The target group of BaseShapes to get the BoundingBox for. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} GetBoundingBoxOfItems(IEnumerable<Feature>) ** | ||
- | |||
- | This API gets the BoundingBox of a group of Features. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:The BoundingBox that contains all the features you passed in. | ||
- | |||
- | == Parameters == | ||
- | * //features// | ||
- | * Type:IEnumerable<[[ThinkGeo.MapSuite.Core.Feature|Feature]]> | ||
- | * Description:The target group of Features to get the BoundingBox for. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomIn(RectangleShape,Int32) ** | ||
- | |||
- | This method returns a new extent that is zoomed in by the percentage provided. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns a new extent that is zoomed in by the percentage provided. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to zoom. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom in. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomIntoCenter(RectangleShape,Int32,PointShape,Single,Single) ** | ||
- | |||
- | This method returns an extent that is centered and zoomed in. | ||
- | == Remarks == | ||
- | The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an extent that is centered and zoomed in. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent that you want centered and zoomed. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom in. | ||
- | |||
- | * //worldPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the world point you want the extent to be centered on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width in screen coordinates. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height in screen coordinates. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomIntoCenter(RectangleShape,Int32,Feature,Single,Single) ** | ||
- | |||
- | This method returns a new extent that is zoomed in by the percentage provided. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns a new extent that is zoomed in by the percentage provided. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to zoom. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom in. | ||
- | |||
- | * //centerFeature// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the world point feature you want the extent to be centered on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width in screen coordinates. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height in screen coordinates. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomIntoCenter(RectangleShape,Int32,Single,Single,Single,Single) ** | ||
- | |||
- | This method returns an extent that is centered and zoomed in. | ||
- | == Remarks == | ||
- | The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an extent that is centered and zoomed in. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to center and zoom. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom in. | ||
- | |||
- | * //screenX// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen X you want to center on. | ||
- | |||
- | * //screenY// | ||
- | * Type:Single | ||
- | * Description:This parameter is the screen Y you want to center on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomOut(RectangleShape,Int32) ** | ||
- | |||
- | This method returns a new extent that is zoomed out by the percentage provided. | ||
- | == Remarks == | ||
- | None | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns a new extent that is zoomed out by the percentage provided. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to zoom. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom out. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomOutToCenter(RectangleShape,Int32,PointShape,Single,Single) ** | ||
- | |||
- | This method returns an extent that is centered and zoomed out. | ||
- | == Remarks == | ||
- | The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an extent that is centered and zoomed out. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to center and zoom. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom out. | ||
- | |||
- | * //worldPoint// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.PointShape|PointShape]] | ||
- | * Description:This parameter is the world point you want the extent to be centered on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:PublicMethod.gif|}}{{wiki:Static.gif|}} ZoomOutToCenter(RectangleShape,Int32,Feature,Single,Single) ** | ||
- | |||
- | This method returns an extent that is centered and zoomed out. | ||
- | == Remarks == | ||
- | The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards. | ||
- | |||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This method returns an extent that is centered and zoomed out. | ||
- | |||
- | == Parameters == | ||
- | * //worldExtent// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | * Description:This parameter is the world extent you want to center and zoom. | ||
- | |||
- | * //percentage// | ||
- | * Type:Int32 | ||
- | * Description:This parameter is the percentage by which you want to zoom out. | ||
- | |||
- | * //centerFeature// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.Feature|Feature]] | ||
- | * Description:This parameter is the feature you want the extent to be centered on. | ||
- | |||
- | * //screenWidth// | ||
- | * Type:Single | ||
- | * Description:This parameter is the width of the screen. | ||
- | |||
- | * //screenHeight// | ||
- | * Type:Single | ||
- | * Description:This parameter is the height of the screen. | ||
- | |||
- | <div newline></div> | ||
- | ==== Protected Methods ==== | ||
- | ** {{wiki:ProtectedMethod.gif|}} OnAdornmentLayersDrawing(AdornmentLayersDrawingEventArgs) ** | ||
- | |||
- | This event is raised before AdornmentLayers are drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //e// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.AdornmentLayersDrawingEventArgs|AdornmentLayersDrawingEventArgs]] | ||
- | * Description:The AdornmentLayersDrawingEventArgs passed for the event raised. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} OnAdornmentLayersDrawn(AdornmentLayersDrawnEventArgs) ** | ||
- | |||
- | This event is raised after AdornmentLayers are drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //e// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.AdornmentLayersDrawnEventArgs|AdornmentLayersDrawnEventArgs]] | ||
- | * Description:The AdornmentLayersDrawnEventArgs passed for the event raised. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} OnAdornmentLayerDrawing(AdornmentLayerDrawingEventArgs) ** | ||
- | |||
- | This event is raised before an AdornmentLayer is drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //e// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.AdornmentLayerDrawingEventArgs|AdornmentLayerDrawingEventArgs]] | ||
- | * Description:The AdornmentLayerDrawingEventArgs passed for the event raised. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} OnAdornmentLayerDrawn(AdornmentLayerDrawnEventArgs) ** | ||
- | |||
- | This event is raised after an AdornmentLayer is drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //e// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.AdornmentLayerDrawnEventArgs|AdornmentLayerDrawnEventArgs]] | ||
- | * Description:The AdornmentLayerDrawnEventArgs passed for the event raised. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} OnLayersDrawing(LayersDrawingEventArgs) ** | ||
- | |||
- | This event is raised before Layers are drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //e// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.LayersDrawingEventArgs|LayersDrawingEventArgs]] | ||
- | * Description:The LayersDrawingEventArgs passed for the event raised. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} OnLayersDrawn(LayersDrawnEventArgs) ** | ||
- | |||
- | This event is raised after Layers are drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //e// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.LayersDrawnEventArgs|LayersDrawnEventArgs]] | ||
- | * Description:The LayersDrawnEventArgs passed for the event raised. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} OnLayerDrawing(LayerDrawingEventArgs) ** | ||
- | |||
- | This event is raised before a Layer is drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //e// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.LayerDrawingEventArgs|LayerDrawingEventArgs]] | ||
- | * Description:The LayerDrawingEventArgs passed for the event raised. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} OnLayerDrawn(LayerDrawnEventArgs) ** | ||
- | |||
- | This event is raised after a Layer is drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | * //e// | ||
- | * Type:[[ThinkGeo.MapSuite.Core.LayerDrawnEventArgs|LayerDrawnEventArgs]] | ||
- | * Description:The LayerDrawnEventArgs passed for the event raised. | ||
- | |||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ||
- | |||
- | N/A | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Void | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ||
- | |||
- | N/A | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | == Return Value == | ||
- | * Type:Object | ||
- | * Description:N/A | ||
- | |||
- | == Parameters == | ||
- | <div newline></div> | ||
- | ==== Public Properties ==== | ||
- | ** {{wiki:PublicProperty.gif|}} Canvas ** | ||
- | |||
- | Gets and sets the GeoCanvas used to draw the Layers. | ||
- | == Remarks == | ||
- | N/A | ||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoCanvas|GeoCanvas]] | ||
- | |||
- | ** {{wiki:PublicProperty.gif|}} ShowLogo ** | ||
- | |||
- | This property specifies whether the logo is shown on the Map or not. | ||
- | == Remarks == | ||
- | N/A | ||
- | == Return Value == | ||
- | * Type:Boolean | ||
- | |||
- | ** {{wiki:PublicProperty.gif|}} AdornmentLayers ** | ||
- | |||
- | This property holds a collection of AdornmentLayers to be drawn on the MapEngine. | ||
- | == Remarks == | ||
- | This collection of Layers StaticLayers will be drawn when calling the DrawAdornmentLayers API. | ||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoCollection<T>[[ThinkGeo.MapSuite.Core.AdornmentLayer, MapSuitePortableCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null]]|GeoCollection<T>]] | ||
- | |||
- | ** {{wiki:PublicProperty.gif|}} CurrentExtent ** | ||
- | |||
- | This property gets or sets the current extent of the MapEngine. | ||
- | == Remarks == | ||
- | The current extent is the rectangle that is currently being shown on the MapEngine. | ||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.RectangleShape|RectangleShape]] | ||
- | |||
- | ** {{wiki:PublicProperty.gif|}} StaticLayers ** | ||
- | |||
- | This property holds a group of Layers to be drawn on the MapEngine. | ||
- | == Remarks == | ||
- | This collection of Layers StaticLayers will be drawn when calling the DrawStaticLayers API. | ||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoCollection<T>[[ThinkGeo.MapSuite.Core.Layer, MapSuitePortableCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null]]|GeoCollection<T>]] | ||
- | |||
- | ** {{wiki:PublicProperty.gif|}} DynamicLayers ** | ||
- | |||
- | This property holds a group of Layers to be drawn on the MapEngine. | ||
- | == Remarks == | ||
- | This collection of Layers StaticLayers will be drawn when calling the DrawDynamicLayers API. | ||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoCollection<T>[[ThinkGeo.MapSuite.Core.Layer, MapSuitePortableCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null]]|GeoCollection<T>]] | ||
- | |||
- | ** {{wiki:PublicProperty.gif|}} BackgroundFillBrush ** | ||
- | |||
- | Gets or sets the GeoBrush for the background of the MapEngine. | ||
- | == Remarks == | ||
- | N/A | ||
- | == Return Value == | ||
- | * Type:[[ThinkGeo.MapSuite.Core.GeoBrush|GeoBrush]] | ||
- | |||
- | ==== Protected Properties ==== | ||
- | ==== Public Events ==== | ||
- | ** {{wiki:PublicEvent.gif|}} LayersDrawing ** | ||
- | This event is raised before Layers are drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | Event Arguments:[[ThinkGeo.MapSuite.Core.LayersDrawingEventArgs|LayersDrawingEventArgs]] | ||
- | |||
- | ** {{wiki:PublicEvent.gif|}} LayersDrawn ** | ||
- | This event is raised after Layers are drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | Event Arguments:[[ThinkGeo.MapSuite.Core.LayersDrawnEventArgs|LayersDrawnEventArgs]] | ||
- | |||
- | ** {{wiki:PublicEvent.gif|}} LayerDrawing ** | ||
- | This event is raised before a Layer is drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | Event Arguments:[[ThinkGeo.MapSuite.Core.LayerDrawingEventArgs|LayerDrawingEventArgs]] | ||
- | |||
- | ** {{wiki:PublicEvent.gif|}} LayerDrawn ** | ||
- | This event is raised after a Layer is drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | Event Arguments:[[ThinkGeo.MapSuite.Core.LayerDrawnEventArgs|LayerDrawnEventArgs]] | ||
- | |||
- | ** {{wiki:PublicEvent.gif|}} AdornmentLayersDrawing ** | ||
- | This event is raised before AdornmentLayers are drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | Event Arguments:[[ThinkGeo.MapSuite.Core.AdornmentLayersDrawingEventArgs|AdornmentLayersDrawingEventArgs]] | ||
- | |||
- | ** {{wiki:PublicEvent.gif|}} AdornmentLayersDrawn ** | ||
- | This event is raised after AdornmentLayers are drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | Event Arguments:[[ThinkGeo.MapSuite.Core.AdornmentLayersDrawnEventArgs|AdornmentLayersDrawnEventArgs]] | ||
- | |||
- | ** {{wiki:PublicEvent.gif|}} AdornmentLayerDrawing ** | ||
- | This event is raised before an AdornmentLayer is drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | Event Arguments:[[ThinkGeo.MapSuite.Core.AdornmentLayerDrawingEventArgs|AdornmentLayerDrawingEventArgs]] | ||
- | |||
- | ** {{wiki:PublicEvent.gif|}} AdornmentLayerDrawn ** | ||
- | This event is raised after an AdornmentLayer is drawn. | ||
- | == Remarks == | ||
- | N/A | ||
- | |||
- | Event Arguments:[[ThinkGeo.MapSuite.Core.AdornmentLayerDrawnEventArgs|AdornmentLayerDrawnEventArgs]] | ||
- | |||
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.