C# Class SuperMap.WinRT.Mapping.Map

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

Public Properties

Property Type Description
AngleProperty DependencyProperty
LayersProperty DependencyProperty
PanDurationProperty DependencyProperty
PanFactorProperty DependencyProperty
ZoomDurationProperty DependencyProperty
ZoomFactorProperty DependencyProperty

Private Properties

Property 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

Public Methods

Method 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}

Protected Methods

Method 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

Method 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 method

${mapping_Map_method_ArrangeOverride_D}
protected ArrangeOverride ( Size finalSize ) : Size
finalSize Size
return Size

CloseInfoWindow() public method

${mapping_Map_method_closeInfoWindow_D}
public CloseInfoWindow ( ) : void
return void

Dispose() public method

${mapping_Map_method_Dispose_D}
public Dispose ( ) : void
return void

GetNextResolution() public method

${mapping_Map_method_getNextResolution_D}
public GetNextResolution ( bool plus ) : double
plus bool ${mapping_Map_method_getNextResolution_param_plus}
return double

GetNextScale() public method

${mapping_Map_method_getNextScale_D}
public GetNextScale ( bool plus ) : double
plus bool ${mapping_Map_method_getNextScale_param_plus}
return double

ManipulationPan() public method

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

ManipulationZoom() public method

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

Map() public method

${mapping_Map_constructor_None_D}
public Map ( ) : System
return System

MapToScreen() public method

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

OnApplyTemplate() protected method

${mapping_Map_method_onApplyTemplate_D}
protected OnApplyTemplate ( ) : void
return void

OnDoubleTapped() protected method

protected OnDoubleTapped ( DoubleTappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.DoubleTappedRoutedEventArgs
return void

OnHolding() protected method

protected OnHolding ( HoldingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.HoldingRoutedEventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.KeyRoutedEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.KeyRoutedEventArgs
return void

OnManipulationCompleted() protected method

protected OnManipulationCompleted ( ManipulationCompletedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationCompletedRoutedEventArgs
return void

OnManipulationDelta() protected method

protected OnManipulationDelta ( ManipulationDeltaRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs
return void

OnManipulationInertiaStarting() protected method

protected OnManipulationInertiaStarting ( ManipulationInertiaStartingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationInertiaStartingRoutedEventArgs
return void

OnManipulationStarted() protected method

protected OnManipulationStarted ( ManipulationStartedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs
return void

OnManipulationStarting() protected method

protected OnManipulationStarting ( ManipulationStartingRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.ManipulationStartingRoutedEventArgs
return void

OnPointerCanceled() protected method

protected OnPointerCanceled ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
return void

OnPointerCaptureLost() protected method

protected OnPointerCaptureLost ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
return void

OnPointerEntered() protected method

protected OnPointerEntered ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
return void

OnPointerExited() protected method

protected OnPointerExited ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
return void

OnPointerMoved() protected method

protected OnPointerMoved ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
return void

OnPointerPressed() protected method

protected OnPointerPressed ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
return void

OnPointerReleased() protected method

protected OnPointerReleased ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
return void

OnPointerWheelChanged() protected method

protected OnPointerWheelChanged ( PointerRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.PointerRoutedEventArgs
return void

OnRightTapped() protected method

protected OnRightTapped ( RightTappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.RightTappedRoutedEventArgs
return void

OnTapped() protected method

protected OnTapped ( TappedRoutedEventArgs e ) : void
e Windows.UI.Xaml.Input.TappedRoutedEventArgs
return void

OpenInfoWindow() public method

${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}
return void

OpenInfoWindow() public method

${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}
return void

Pan() public method

${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}
return void

PanByPixel() public method

${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}
return void

PanTo() public method

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

ScreenToMap() public method

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

ViewEntire() public method

${mapping_Map_method_viewEntire_D}
public ViewEntire ( ) : void
return void

Zoom() public method

${mapping_Map_method_zoom_D}
public Zoom ( double ratio ) : void
ratio double ${mapping_Map_method_zoom_param_ratio}
return void

ZoomIn() public method

${mapping_Map_method_zoomIn_D}
public ZoomIn ( ) : void
return void

ZoomOut() public method

${mapping_Map_method_zoomOut_D}
public ZoomOut ( ) : void
return void

ZoomTo() public method

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

ZoomToLevel() public method

${mapping_Map_method_zoomToLevel_Int_D}
public ZoomToLevel ( int level ) : void
level int ${mapping_Map_method_zoomToLevel_Int_param_level}
return void

ZoomToLevel() public method

${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}
return void

ZoomToResolution() public method

${mapping_Map_method_zoomToResolution_Double_D}
public ZoomToResolution ( double resolution ) : void
resolution double ${mapping_Map_method_zoomToResolution_Double_param_resolution}
return void

ZoomToResolution() public method

${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}
return void

ZoomToResolution() public method

${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
return void

ZoomToScale() public method

${mapping_Map_method_zoomToScale_Int_D}
public ZoomToScale ( double scale ) : void
scale double ${mapping_Map_method_zoomToScale_Int_param_scale}
return void

ZoomToScale() public method

${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}
return void

Property Details

AngleProperty public_oe static_oe property

${pubilc_fields_identifies_sl} Angle ${pubilc_fields_attachedproperty_sl}
public static DependencyProperty AngleProperty
return DependencyProperty

LayersProperty public_oe static_oe property

${mapping_Map_field_layersProperty_D}
public static DependencyProperty LayersProperty
return DependencyProperty

PanDurationProperty public_oe static_oe property

${mapping_Map_field_PanDurationProperty_D}
public static DependencyProperty PanDurationProperty
return DependencyProperty

PanFactorProperty public_oe static_oe property

${mapping_Map_attribute_field_panFactorProperty_D}
public static DependencyProperty PanFactorProperty
return DependencyProperty

ZoomDurationProperty public_oe static_oe property

${mapping_Map_field_ZoomDurationProperty_D}
public static DependencyProperty ZoomDurationProperty
return DependencyProperty

ZoomFactorProperty public_oe static_oe property

${mapping_Map_attribute_field_zoomFactorProperty_D}
public static DependencyProperty ZoomFactorProperty
return DependencyProperty