C# Class SuperMap.WinRT.Mapping.Map

Inheritance: Windows.UI.Xaml.Controls.Control, INotifyPropertyChanged
Afficher le fichier Open project: SuperMap/iClient-for-Win8 Class Usage Examples

Méthodes publiques

Свойство Type Description
AngleProperty DependencyProperty
LayersProperty DependencyProperty
PanDurationProperty DependencyProperty
PanFactorProperty DependencyProperty
ZoomDurationProperty DependencyProperty
ZoomFactorProperty DependencyProperty

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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}

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ArrangeOverride() protected méthode

${mapping_Map_method_ArrangeOverride_D}
protected ArrangeOverride ( Size finalSize ) : Size
finalSize Size
Résultat Size

CloseInfoWindow() public méthode

${mapping_Map_method_closeInfoWindow_D}
public CloseInfoWindow ( ) : void
Résultat void

Dispose() public méthode

${mapping_Map_method_Dispose_D}
public Dispose ( ) : void
Résultat void

GetNextResolution() public méthode

${mapping_Map_method_getNextResolution_D}
public GetNextResolution ( bool plus ) : double
plus bool ${mapping_Map_method_getNextResolution_param_plus}
Résultat double

GetNextScale() public méthode

${mapping_Map_method_getNextScale_D}
public GetNextScale ( bool plus ) : double
plus bool ${mapping_Map_method_getNextScale_param_plus}
Résultat double

ManipulationPan() public méthode

${mapping_Map_method_ManipulationPan_D}
public ManipulationPan ( int offsetX, int offsetY, MapStatus mapStatus ) : void
offsetX int
offsetY int
mapStatus MapStatus
Résultat void

ManipulationZoom() public méthode

${mapping_Map_method_ManipulationZoom_D}
public ManipulationZoom ( double resolution, Point2D center, MapStatus mapStatus ) : void
resolution double
center SuperMap.WinRT.Core.Point2D
mapStatus MapStatus
Résultat void

Map() public méthode

${mapping_Map_constructor_None_D}
public Map ( ) : System
Résultat System

MapToScreen() public méthode

${mapping_Map_method_mapToScreen_D}
public MapToScreen ( Point2D point2D ) : Point
point2D SuperMap.WinRT.Core.Point2D ${mapping_Map_method_mapToScreen_param_point2D}
Résultat Point

OnApplyTemplate() protected méthode

${mapping_Map_method_onApplyTemplate_D}
protected OnApplyTemplate ( ) : void
Résultat void

OnDoubleTapped() protected méthode

protected OnDoubleTapped ( DoubleTappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.DoubleTappedRoutedEventArgs
Résultat void

OnHolding() protected méthode

protected OnHolding ( HoldingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.HoldingRoutedEventArgs
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( KeyRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.KeyRoutedEventArgs
Résultat void

OnKeyUp() protected méthode

protected OnKeyUp ( KeyRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.KeyRoutedEventArgs
Résultat void

OnManipulationCompleted() protected méthode

protected OnManipulationCompleted ( ManipulationCompletedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationCompletedRoutedEventArgs
Résultat void

OnManipulationDelta() protected méthode

protected OnManipulationDelta ( ManipulationDeltaRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs
Résultat void

OnManipulationInertiaStarting() protected méthode

protected OnManipulationInertiaStarting ( ManipulationInertiaStartingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationInertiaStartingRoutedEventArgs
Résultat void

OnManipulationStarted() protected méthode

protected OnManipulationStarted ( ManipulationStartedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs
Résultat void

OnManipulationStarting() protected méthode

protected OnManipulationStarting ( ManipulationStartingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationStartingRoutedEventArgs
Résultat void

OnPointerCanceled() protected méthode

protected OnPointerCanceled ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Résultat void

OnPointerCaptureLost() protected méthode

protected OnPointerCaptureLost ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Résultat void

OnPointerEntered() protected méthode

protected OnPointerEntered ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Résultat void

OnPointerExited() protected méthode

protected OnPointerExited ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Résultat void

OnPointerMoved() protected méthode

protected OnPointerMoved ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Résultat void

OnPointerPressed() protected méthode

protected OnPointerPressed ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Résultat void

OnPointerReleased() protected méthode

protected OnPointerReleased ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Résultat void

OnPointerWheelChanged() protected méthode

protected OnPointerWheelChanged ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
Résultat void

OnRightTapped() protected méthode

protected OnRightTapped ( RightTappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.RightTappedRoutedEventArgs
Résultat void

OnTapped() protected méthode

protected OnTapped ( TappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.TappedRoutedEventArgs
Résultat void

OpenInfoWindow() public méthode

${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}
Résultat void

OpenInfoWindow() public méthode

${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}
Résultat void

Pan() public méthode

${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}
Résultat void

PanByPixel() public méthode

${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}
Résultat void

PanTo() public méthode

${mapping_Map_method_panTo_D}
public PanTo ( Point2D center ) : void
center SuperMap.WinRT.Core.Point2D ${mapping_Map_method_panTo_param_center}
Résultat void

ScreenToMap() public méthode

${mapping_Map_method_screenToMap_D}
public ScreenToMap ( Point point ) : Point2D
point Point ${mapping_Map_method_screenToMap_param_point}
Résultat SuperMap.WinRT.Core.Point2D

ViewEntire() public méthode

${mapping_Map_method_viewEntire_D}
public ViewEntire ( ) : void
Résultat void

Zoom() public méthode

${mapping_Map_method_zoom_D}
public Zoom ( double ratio ) : void
ratio double ${mapping_Map_method_zoom_param_ratio}
Résultat void

ZoomIn() public méthode

${mapping_Map_method_zoomIn_D}
public ZoomIn ( ) : void
Résultat void

ZoomOut() public méthode

${mapping_Map_method_zoomOut_D}
public ZoomOut ( ) : void
Résultat void

ZoomTo() public méthode

${mapping_Map_method_zoomTo_D}
public ZoomTo ( Rectangle2D bounds ) : void
bounds SuperMap.WinRT.Core.Rectangle2D ${mapping_Map_method_zoomTo_param_bounds}
Résultat void

ZoomToLevel() public méthode

${mapping_Map_method_zoomToLevel_Int_D}
public ZoomToLevel ( int level ) : void
level int ${mapping_Map_method_zoomToLevel_Int_param_level}
Résultat void

ZoomToLevel() public méthode

${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}
Résultat void

ZoomToResolution() public méthode

${mapping_Map_method_zoomToResolution_Double_D}
public ZoomToResolution ( double resolution ) : void
resolution double ${mapping_Map_method_zoomToResolution_Double_param_resolution}
Résultat void

ZoomToResolution() public méthode

${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}
Résultat void

ZoomToResolution() public méthode

${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
Résultat void

ZoomToScale() public méthode

${mapping_Map_method_zoomToScale_Int_D}
public ZoomToScale ( double scale ) : void
scale double ${mapping_Map_method_zoomToScale_Int_param_scale}
Résultat void

ZoomToScale() public méthode

${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}
Résultat void

Property Details

AngleProperty public_oe static_oe property

${pubilc_fields_identifies_sl} Angle ${pubilc_fields_attachedproperty_sl}
public static DependencyProperty AngleProperty
Résultat DependencyProperty

LayersProperty public_oe static_oe property

${mapping_Map_field_layersProperty_D}
public static DependencyProperty LayersProperty
Résultat DependencyProperty

PanDurationProperty public_oe static_oe property

${mapping_Map_field_PanDurationProperty_D}
public static DependencyProperty PanDurationProperty
Résultat DependencyProperty

PanFactorProperty public_oe static_oe property

${mapping_Map_attribute_field_panFactorProperty_D}
public static DependencyProperty PanFactorProperty
Résultat DependencyProperty

ZoomDurationProperty public_oe static_oe property

${mapping_Map_field_ZoomDurationProperty_D}
public static DependencyProperty ZoomDurationProperty
Résultat DependencyProperty

ZoomFactorProperty public_oe static_oe property

${mapping_Map_attribute_field_zoomFactorProperty_D}
public static DependencyProperty ZoomFactorProperty
Résultat DependencyProperty