C# Класс SuperMap.WinRT.Mapping.Map

Наследование: Windows.UI.Xaml.Controls.Control, INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AngleProperty DependencyProperty
LayersProperty DependencyProperty
PanDurationProperty DependencyProperty
PanFactorProperty DependencyProperty
ZoomDurationProperty DependencyProperty
ZoomFactorProperty DependencyProperty

Private Properties

Свойство Тип Описание
AssignLayerContainer void
BuildMapAction void
CalculateStartViewBounds void
ClipScale double
CloseToolTip void
GetCurrentOffset Point
GetFullViewBounds SuperMap.WinRT.Core.Rectangle2D
InsertLayerContainer void
Layers_CollectionChanged void
Layers_LayersInitialized void
LoadLayerInView void
LoadLayersInView void
Map_Loaded void
Map_SizeChanged void
OnAnglePropertyChanged void
OnLayersPropertyChanged void
OnMapActionChanged void
PanTo void
RaiseAngleChanged void
RaiseViewBoundsChanged void
RaiseViewBoundsChanging void
RemoveMapLayers void
ResetMapStatus void
ResetTranslate void
SetOriginAndResolution void
ShowToolTip void
UpdateClip void
ZoomHelper_ZoomCompleted void
ZoomHelper_ZoomStarted void
ZoomHelper_Zooming void
getAdjustedViewBounds SuperMap.WinRT.Core.Rectangle2D
layer_Initialized void
layer_OnLayerChanged void
layersProgressHandler void
mapToPanLayer Point
panHelper_PanAnimationCompleted void
panHelper_PanStarted void
panHelper_Panning void
panLayerToMap SuperMap.WinRT.Core.Point2D
panTo void
panTo void
raisePropertyChanged void
rootElementToMap SuperMap.WinRT.Core.Point2D
zoomAbout void
zoomTo void

Открытые методы

Метод Описание
CloseInfoWindow ( ) : void

${mapping_Map_method_closeInfoWindow_D}

Dispose ( ) : void

${mapping_Map_method_Dispose_D}

GetNextResolution ( bool plus ) : double

${mapping_Map_method_getNextResolution_D}

GetNextScale ( bool plus ) : double

${mapping_Map_method_getNextScale_D}

ManipulationPan ( int offsetX, int offsetY, MapStatus mapStatus ) : void

${mapping_Map_method_ManipulationPan_D}

ManipulationZoom ( double resolution, Point2D center, MapStatus mapStatus ) : void

${mapping_Map_method_ManipulationZoom_D}

Map ( ) : System

${mapping_Map_constructor_None_D}

MapToScreen ( Point2D point2D ) : Point

${mapping_Map_method_mapToScreen_D}

OpenInfoWindow ( Point2D location, UIElement element ) : void

${mapping_Map_method_openInfoWindow_D}

OpenInfoWindow ( Point2D location, double offsetPixelX, double offsetPixelY, UIElement element ) : void

${mapping_Map_method_openInfoWindow_D}

Pan ( double offsetX, double offsetY ) : void

${mapping_Map_method_pan_D_sl}

PanByPixel ( double pixelX, double pixelY ) : void

${mapping_Map_method_panByPixel_D}

PanTo ( Point2D center ) : void

${mapping_Map_method_panTo_D}

ScreenToMap ( Point point ) : Point2D

${mapping_Map_method_screenToMap_D}

ViewEntire ( ) : void

${mapping_Map_method_viewEntire_D}

Zoom ( double ratio ) : void

${mapping_Map_method_zoom_D}

ZoomIn ( ) : void

${mapping_Map_method_zoomIn_D}

ZoomOut ( ) : void

${mapping_Map_method_zoomOut_D}

ZoomTo ( Rectangle2D bounds ) : void

${mapping_Map_method_zoomTo_D}

ZoomToLevel ( int level ) : void

${mapping_Map_method_zoomToLevel_Int_D}

ZoomToLevel ( int level, Point2D center ) : void

${mapping_Map_method_zoomToLevel_Int_Point2D_D}

ZoomToResolution ( double resolution ) : void

${mapping_Map_method_zoomToResolution_Double_D}

ZoomToResolution ( double resolution, Point2D center ) : void

${mapping_Map_method_zoomToResolution_Double_Point2D_D}

ZoomToResolution ( double resolution, Point2D center, bool skipAnimation ) : void

${mapping_Map_method_zoomToResolution_Double_Point2D_Bool_D}

ZoomToScale ( double scale ) : void

${mapping_Map_method_zoomToScale_Int_D}

ZoomToScale ( double scale, Point2D center ) : void

${mapping_Map_method_zoomToScale_Int_Point2D_D}

Защищенные методы

Метод Описание
ArrangeOverride ( Size finalSize ) : Size

${mapping_Map_method_ArrangeOverride_D}

OnApplyTemplate ( ) : void

${mapping_Map_method_onApplyTemplate_D}

OnDoubleTapped ( DoubleTappedRoutedEventArgs e ) : void
OnHolding ( HoldingRoutedEventArgs e ) : void
OnKeyDown ( KeyRoutedEventArgs e ) : void
OnKeyUp ( KeyRoutedEventArgs e ) : void
OnManipulationCompleted ( ManipulationCompletedRoutedEventArgs e ) : void
OnManipulationDelta ( ManipulationDeltaRoutedEventArgs e ) : void
OnManipulationInertiaStarting ( ManipulationInertiaStartingRoutedEventArgs e ) : void
OnManipulationStarted ( ManipulationStartedRoutedEventArgs e ) : void
OnManipulationStarting ( ManipulationStartingRoutedEventArgs e ) : void
OnPointerCanceled ( PointerRoutedEventArgs e ) : void
OnPointerCaptureLost ( PointerRoutedEventArgs e ) : void
OnPointerEntered ( PointerRoutedEventArgs e ) : void
OnPointerExited ( PointerRoutedEventArgs e ) : void
OnPointerMoved ( PointerRoutedEventArgs e ) : void
OnPointerPressed ( PointerRoutedEventArgs e ) : void
OnPointerReleased ( PointerRoutedEventArgs e ) : void
OnPointerWheelChanged ( PointerRoutedEventArgs e ) : void
OnRightTapped ( RightTappedRoutedEventArgs e ) : void
OnTapped ( TappedRoutedEventArgs e ) : void

Приватные методы

Метод Описание
AssignLayerContainer ( Layer layer ) : void
BuildMapAction ( ) : void
CalculateStartViewBounds ( Size size ) : void
ClipScale ( double scale ) : double
CloseToolTip ( ) : void
GetCurrentOffset ( ) : Point

获取地图的偏移量,用作平移用。

GetFullViewBounds ( ) : Rectangle2D
InsertLayerContainer ( Layer layer ) : void
Layers_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
Layers_LayersInitialized ( object sender, EventArgs args ) : void
LoadLayerInView ( bool useTransitions, Rectangle2D drawBounds, Layer layer ) : void
LoadLayersInView ( bool useTransitions, Rectangle2D drawBounds ) : void
Map_Loaded ( object sender, RoutedEventArgs e ) : void
Map_SizeChanged ( object sender, SizeChangedEventArgs e ) : void
OnAnglePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnLayersPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnMapActionChanged ( MapActionArgs args ) : void
PanTo ( Rectangle2D bounds, bool skipAnimation ) : void
RaiseAngleChanged ( DependencyPropertyChangedEventArgs e ) : void
RaiseViewBoundsChanged ( ) : void
RaiseViewBoundsChanging ( ViewBoundsEventArgs args ) : void
RemoveMapLayers ( Layer _layer ) : void
ResetMapStatus ( ) : void
ResetTranslate ( ) : void
SetOriginAndResolution ( double currentResolution, Point2D currentOrigin, bool resetTransforms ) : void

所有对Map的分辨率的实际修改都要通过这个方法,这个方法在修改分辨率之前,需要重置偏移量和参考原点。

ShowToolTip ( ) : void
UpdateClip ( Size arrangeSize ) : void
ZoomHelper_ZoomCompleted ( object sender, ZoomAnimationEventArgs e ) : void
ZoomHelper_ZoomStarted ( object sender, EventArgs e ) : void
ZoomHelper_Zooming ( object sender, ZoomAnimationEventArgs e ) : void
getAdjustedViewBounds ( Rectangle2D viewBounds, Size viewSize ) : Rectangle2D
layer_Initialized ( object sender, EventArgs e ) : void
layer_OnLayerChanged ( object sender, EventArgs args ) : void
layersProgressHandler ( object sender, ProgressEventArgs args ) : void
mapToPanLayer ( Point2D pt ) : Point
panHelper_PanAnimationCompleted ( object sender, PanAnimationEventArgs e ) : void
panHelper_PanStarted ( object sender, EventArgs e ) : void
panHelper_Panning ( object sender, PanAnimationEventArgs e ) : void
panLayerToMap ( Point pnt ) : Point2D
panTo ( Point2D center, bool skipAnimation ) : void
panTo ( Rectangle2D bounds ) : void
raisePropertyChanged ( string propertyName ) : void
rootElementToMap ( Point pnt ) : Point2D
zoomAbout ( double factor, Point2D center, bool skipAnimation ) : void
zoomTo ( Rectangle2D bounds, bool skipAnimation ) : void

Описание методов

ArrangeOverride() защищенный Метод

${mapping_Map_method_ArrangeOverride_D}
protected ArrangeOverride ( Size finalSize ) : Size
finalSize Size
Результат Size

CloseInfoWindow() публичный Метод

${mapping_Map_method_closeInfoWindow_D}
public CloseInfoWindow ( ) : void
Результат void

Dispose() публичный Метод

${mapping_Map_method_Dispose_D}
public Dispose ( ) : void
Результат void

GetNextResolution() публичный Метод

${mapping_Map_method_getNextResolution_D}
public GetNextResolution ( bool plus ) : double
plus bool ${mapping_Map_method_getNextResolution_param_plus}
Результат double

GetNextScale() публичный Метод

${mapping_Map_method_getNextScale_D}
public GetNextScale ( bool plus ) : double
plus bool ${mapping_Map_method_getNextScale_param_plus}
Результат double

ManipulationPan() публичный Метод

${mapping_Map_method_ManipulationPan_D}
public ManipulationPan ( int offsetX, int offsetY, MapStatus mapStatus ) : void
offsetX int
offsetY int
mapStatus MapStatus
Результат void

ManipulationZoom() публичный Метод

${mapping_Map_method_ManipulationZoom_D}
public ManipulationZoom ( double resolution, Point2D center, MapStatus mapStatus ) : void
resolution double
center SuperMap.WinRT.Core.Point2D
mapStatus MapStatus
Результат void

Map() публичный Метод

${mapping_Map_constructor_None_D}
public Map ( ) : System
Результат System

MapToScreen() публичный Метод

${mapping_Map_method_mapToScreen_D}
public MapToScreen ( Point2D point2D ) : Point
point2D SuperMap.WinRT.Core.Point2D ${mapping_Map_method_mapToScreen_param_point2D}
Результат Point

OnApplyTemplate() защищенный Метод

${mapping_Map_method_onApplyTemplate_D}
protected OnApplyTemplate ( ) : void
Результат void

OnDoubleTapped() защищенный Метод

protected OnDoubleTapped ( DoubleTappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.DoubleTappedRoutedEventArgs
Результат void

OnHolding() защищенный Метод

protected OnHolding ( HoldingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.HoldingRoutedEventArgs
Результат void

OnKeyDown() защищенный Метод

protected OnKeyDown ( KeyRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.KeyRoutedEventArgs
Результат void

OnKeyUp() защищенный Метод

protected OnKeyUp ( KeyRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.KeyRoutedEventArgs
Результат void

OnManipulationCompleted() защищенный Метод

protected OnManipulationCompleted ( ManipulationCompletedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationCompletedRoutedEventArgs
Результат void

OnManipulationDelta() защищенный Метод

protected OnManipulationDelta ( ManipulationDeltaRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs
Результат void

OnManipulationInertiaStarting() защищенный Метод

protected OnManipulationInertiaStarting ( ManipulationInertiaStartingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationInertiaStartingRoutedEventArgs
Результат void

OnManipulationStarted() защищенный Метод

protected OnManipulationStarted ( ManipulationStartedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs
Результат void

OnManipulationStarting() защищенный Метод

protected OnManipulationStarting ( ManipulationStartingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationStartingRoutedEventArgs
Результат void

OnPointerCanceled() защищенный Метод

protected OnPointerCanceled ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Результат void

OnPointerCaptureLost() защищенный Метод

protected OnPointerCaptureLost ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Результат void

OnPointerEntered() защищенный Метод

protected OnPointerEntered ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Результат void

OnPointerExited() защищенный Метод

protected OnPointerExited ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Результат void

OnPointerMoved() защищенный Метод

protected OnPointerMoved ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Результат void

OnPointerPressed() защищенный Метод

protected OnPointerPressed ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Результат void

OnPointerReleased() защищенный Метод

protected OnPointerReleased ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Результат void

OnPointerWheelChanged() защищенный Метод

protected OnPointerWheelChanged ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Результат void

OnRightTapped() защищенный Метод

protected OnRightTapped ( RightTappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.RightTappedRoutedEventArgs
Результат void

OnTapped() защищенный Метод

protected OnTapped ( TappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.TappedRoutedEventArgs
Результат void

OpenInfoWindow() публичный Метод

${mapping_Map_method_openInfoWindow_D}
public OpenInfoWindow ( Point2D location, UIElement element ) : void
location SuperMap.WinRT.Core.Point2D ${mapping_Map_method_openInfoWindow_param_location}
element UIElement ${mapping_Map_method_openInfoWindow_param_element}
Результат void

OpenInfoWindow() публичный Метод

${mapping_Map_method_openInfoWindow_D}
public OpenInfoWindow ( Point2D location, double offsetPixelX, double offsetPixelY, UIElement element ) : void
location SuperMap.WinRT.Core.Point2D ${mapping_Map_method_openInfoWindow_param_location}
offsetPixelX double ${mapping_Map_method_openInfoWindow_param_offsetPixelX}
offsetPixelY double ${mapping_Map_method_openInfoWindow_param_offsetPixelY}
element UIElement ${mapping_Map_method_openInfoWindow_param_element}
Результат void

Pan() публичный Метод

${mapping_Map_method_pan_D_sl}
public Pan ( double offsetX, double offsetY ) : void
offsetX double ${mapping_Map_method_pan_param_offsetX}
offsetY double ${mapping_Map_method_pan_param_offsetY}
Результат void

PanByPixel() публичный Метод

${mapping_Map_method_panByPixel_D}
public PanByPixel ( double pixelX, double pixelY ) : void
pixelX double ${mapping_Map_method_panByPixel_param_pixelX}
pixelY double ${mapping_Map_method_panByPixel_param_pixelY}
Результат void

PanTo() публичный Метод

${mapping_Map_method_panTo_D}
public PanTo ( Point2D center ) : void
center SuperMap.WinRT.Core.Point2D ${mapping_Map_method_panTo_param_center}
Результат void

ScreenToMap() публичный Метод

${mapping_Map_method_screenToMap_D}
public ScreenToMap ( Point point ) : Point2D
point Point ${mapping_Map_method_screenToMap_param_point}
Результат SuperMap.WinRT.Core.Point2D

ViewEntire() публичный Метод

${mapping_Map_method_viewEntire_D}
public ViewEntire ( ) : void
Результат void

Zoom() публичный Метод

${mapping_Map_method_zoom_D}
public Zoom ( double ratio ) : void
ratio double ${mapping_Map_method_zoom_param_ratio}
Результат void

ZoomIn() публичный Метод

${mapping_Map_method_zoomIn_D}
public ZoomIn ( ) : void
Результат void

ZoomOut() публичный Метод

${mapping_Map_method_zoomOut_D}
public ZoomOut ( ) : void
Результат void

ZoomTo() публичный Метод

${mapping_Map_method_zoomTo_D}
public ZoomTo ( Rectangle2D bounds ) : void
bounds SuperMap.WinRT.Core.Rectangle2D ${mapping_Map_method_zoomTo_param_bounds}
Результат void

ZoomToLevel() публичный Метод

${mapping_Map_method_zoomToLevel_Int_D}
public ZoomToLevel ( int level ) : void
level int ${mapping_Map_method_zoomToLevel_Int_param_level}
Результат void

ZoomToLevel() публичный Метод

${mapping_Map_method_zoomToLevel_Int_Point2D_D}
public ZoomToLevel ( int level, Point2D center ) : void
level int ${mapping_Map_method_zoomToLevel_Int_param_level}
center SuperMap.WinRT.Core.Point2D ${mapping_Map_method_zoomToLevel_Int_Point2D_param_center}
Результат void

ZoomToResolution() публичный Метод

${mapping_Map_method_zoomToResolution_Double_D}
public ZoomToResolution ( double resolution ) : void
resolution double ${mapping_Map_method_zoomToResolution_Double_param_resolution}
Результат void

ZoomToResolution() публичный Метод

${mapping_Map_method_zoomToResolution_Double_Point2D_D}
public ZoomToResolution ( double resolution, Point2D center ) : void
resolution double ${mapping_Map_method_zoomToResolution_Double_param_resolution}
center SuperMap.WinRT.Core.Point2D ${mapping_Map_method_zoomToResolution_Double_Point2D_param_center}
Результат void

ZoomToResolution() публичный Метод

${mapping_Map_method_zoomToResolution_Double_Point2D_Bool_D}
public ZoomToResolution ( double resolution, Point2D center, bool skipAnimation ) : void
resolution double ${mapping_Map_method_zoomToResolution_Double_param_resolution}
center SuperMap.WinRT.Core.Point2D ${mapping_Map_method_zoomToResolution_Double_Point2D_param_center}
skipAnimation bool
Результат void

ZoomToScale() публичный Метод

${mapping_Map_method_zoomToScale_Int_D}
public ZoomToScale ( double scale ) : void
scale double ${mapping_Map_method_zoomToScale_Int_param_scale}
Результат void

ZoomToScale() публичный Метод

${mapping_Map_method_zoomToScale_Int_Point2D_D}
public ZoomToScale ( double scale, Point2D center ) : void
scale double ${mapping_Map_method_zoomToScale_Int_param_scale}
center SuperMap.WinRT.Core.Point2D ${mapping_Map_method_zoomToScale_Int_Point2D_param_center}
Результат void

Описание свойств

AngleProperty публичное статическое свойство

${pubilc_fields_identifies_sl} Angle ${pubilc_fields_attachedproperty_sl}
public static DependencyProperty AngleProperty
Результат DependencyProperty

LayersProperty публичное статическое свойство

${mapping_Map_field_layersProperty_D}
public static DependencyProperty LayersProperty
Результат DependencyProperty

PanDurationProperty публичное статическое свойство

${mapping_Map_field_PanDurationProperty_D}
public static DependencyProperty PanDurationProperty
Результат DependencyProperty

PanFactorProperty публичное статическое свойство

${mapping_Map_attribute_field_panFactorProperty_D}
public static DependencyProperty PanFactorProperty
Результат DependencyProperty

ZoomDurationProperty публичное статическое свойство

${mapping_Map_field_ZoomDurationProperty_D}
public static DependencyProperty ZoomDurationProperty
Результат DependencyProperty

ZoomFactorProperty публичное статическое свойство

${mapping_Map_attribute_field_zoomFactorProperty_D}
public static DependencyProperty ZoomFactorProperty
Результат DependencyProperty