C# Class SuperMap.Connector.Control.WPF.MapControl

地图控件。
Inheritance: System.Windows.Controls.UserControl, IMapNotifyPropertyChanged
Exibir arquivo Open project: SuperMap/iClient-for-DotNet Class Usage Examples

Public Properties

Property Type Description
MapLayerProperty System.Windows.DependencyProperty
ZoomProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetMapImage ( ) : ImageSource

获取当前显示的地图图片

MapControl ( ) : System

初始化MapControl类的新实例。

MapToScreen ( Point2D point ) : System.Drawing.Point

将地理坐标转换成屏幕上的像素坐标。

OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

当依赖属性发生变化时,调用此方法。

OnPropertyChanged ( string name ) : void

当属性发生变化时,调用此方法。

ScreenToMap ( System point ) : Point2D

将屏幕上的像素坐标转换成地理坐标。

Protected Methods

Method Description
OnMapLoaded ( ) : void
OnMapMapLayerError ( MapErrorEventArgs e ) : void

Private Methods

Method Description
GetNowViewBounds ( ) : Rectangle2D

获取当前地图可视范围。

MapLayerPropertyChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnZoomPropertyChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
gMapControl1_MouseWheel ( object sender, System.Windows.Input.MouseWheelEventArgs e ) : void
gMapControl1_OnPositionChanged ( GMap point ) : void
gMapControl1_OnTileLoadComplete ( long ElapsedMilliseconds ) : void

Method Details

GetMapImage() public method

获取当前显示的地图图片
public GetMapImage ( ) : ImageSource
return ImageSource

MapControl() public method

初始化MapControl类的新实例。
public MapControl ( ) : System
return System

MapToScreen() public method

将地理坐标转换成屏幕上的像素坐标。
public MapToScreen ( Point2D point ) : System.Drawing.Point
point Point2D 地理坐标。
return System.Drawing.Point

OnMapLoaded() protected method

protected OnMapLoaded ( ) : void
return void

OnMapMapLayerError() protected method

protected OnMapMapLayerError ( MapErrorEventArgs e ) : void
e MapErrorEventArgs
return void

OnPropertyChanged() public method

当依赖属性发生变化时,调用此方法。
public OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs 发生变化的依赖属性的变化详细信息。
return void

OnPropertyChanged() public method

当属性发生变化时,调用此方法。
public OnPropertyChanged ( string name ) : void
name string 发生变化的属性名字
return void

ScreenToMap() public method

将屏幕上的像素坐标转换成地理坐标。
public ScreenToMap ( System point ) : Point2D
point System 屏幕上的像素坐标
return Point2D

Property Details

MapLayerProperty public_oe static_oe property

标识MapLayer依赖属性
public static DependencyProperty,System.Windows MapLayerProperty
return System.Windows.DependencyProperty

ZoomProperty public_oe static_oe property

标识Zoom依赖属性
public static DependencyProperty,System.Windows ZoomProperty
return System.Windows.DependencyProperty