C# Class SuperMap.Web.Mapping.Map

Inheritance: System.Windows.Controls.Control, INotifyPropertyChanged
显示文件 Open project: SuperMap/iClient-for-Silverlight Class Usage Examples

Public Properties

Property Type Description
AngleProperty System.Windows.DependencyProperty
LayersProperty System.Windows.DependencyProperty
PanDurationProperty System.Windows.DependencyProperty
PanFactorProperty System.Windows.DependencyProperty
ZoomDurationProperty System.Windows.DependencyProperty
ZoomFactorProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
AssignLayerContainer void
BuildMapAction void
CalculateStartViewBounds void
ClipResolution double
ClipScale double
CloseToolTip void
CreateErrorMessage void
EndPinch void
GetFullViewBounds SuperMap.Web.Core.Rectangle2D
InitTimer void
InsertLayerContainer void
IsPinchOrStretch bool
Layers_CollectionChanged void
Layers_LayersInitialized void
LoadContinuousLayersInView void
LoadLayerInView void
LoadLayersInView void
Map_Loaded void
Map_ManipulationCompleted void
Map_ManipulationDelta void
Map_ManipulationStarted void
Map_MouseDoubleClick void
Map_SizeChanged void
OnAnglePropertyChanged void
OnLayersPropertyChanged void
OnMapActionChanged void
PanCompleted void
QuinticEaseOut double
RaiseAngleChanged void
RaiseViewBoundsChanged void
RemoveMapLayers void
ResetMapStatus void
SetOriginAndResolution void
ShowToolTip void
StartPinch void
Touch_FrameReported void
UpdateClip void
_drawTimer_Tick void
beginZoomToTargetBounds void
beginZoomToTargetBounds void
getAdjustedViewBounds SuperMap.Web.Core.Rectangle2D
layer_Initialized void
layer_OnLayerChanged void
layersProgressHandler void
mapToPanLayer Point
panHelper_PanAnimationCompleted void
panHelper_Panning void
panLayerToMap SuperMap.Web.Core.Point2D
panTo void
panTo void
panTo void
raisePropertyChanged void
rootElementToMap SuperMap.Web.Core.Point2D
zoomAbout void
zoomTo void
zoomToResolution void

Public Methods

Method Description
CloseInfoWindow ( ) : void

${mapping_Map_method_closeInfoWindow_D}

GetNextResolution ( bool plus ) : double

${mapping_Map_method_getNextResolution_D}

GetNextScale ( bool plus ) : double

${mapping_Map_method_getNextScale_D}

Map ( ) : System

${mapping_Map_constructor_None_D}

MapToScreen ( Point2D point2D ) : Point

${mapping_Map_method_mapToScreen_D}

OnApplyTemplate ( ) : void

${mapping_Map_method_onApplyTemplate_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}

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}

OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void

${mapping_Map_event_onKeyDown_D}

OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void

${mapping_Map_event_onKeyUp_D}

OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void

${ui_action_MapAction_event_onMouseEnter_D}

OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void

${ui_action_MapAction_event_onMouseLeave_D}

OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

${ui_action_MapAction_event_onMouseDown_D}

OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void

${ui_action_MapAction_event_onMouseUp_D}

OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void

${ui_action_MapAction_event_onMouseMove_D}

OnMouseRightButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

${ui_action_MapAction_event_onMouseRightButtonDown_D}

OnMouseRightButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void

${ui_action_MapAction_event_onMouseRightButtonUp_D}

OnMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void

${ui_action_MapAction_event_onMouseWheel_D}

Private Methods

Method Description
AssignLayerContainer ( Layer layer ) : void
BuildMapAction ( ) : void
CalculateStartViewBounds ( Size size ) : void
ClipResolution ( double resolution ) : double
ClipScale ( double scale ) : double
CloseToolTip ( ) : void
CreateErrorMessage ( string message ) : void
EndPinch ( ) : void
GetFullViewBounds ( ) : Rectangle2D
InitTimer ( ) : void
InsertLayerContainer ( Layer layer ) : void
IsPinchOrStretch ( Point scale ) : bool
Layers_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
Layers_LayersInitialized ( object sender, EventArgs args ) : void
LoadContinuousLayersInView ( bool useTransitions ) : void
LoadLayerInView ( bool useTransitions, Rectangle2D drawBounds, Layer layer ) : void
LoadLayersInView ( bool useTransitions, Rectangle2D drawBounds ) : void
Map_Loaded ( object sender, RoutedEventArgs e ) : void
Map_ManipulationCompleted ( object sender, System.Windows.Input.ManipulationCompletedEventArgs e ) : void
Map_ManipulationDelta ( object sender, System.Windows.Input.ManipulationDeltaEventArgs e ) : void
Map_ManipulationStarted ( object sender, System.Windows.Input.ManipulationStartedEventArgs e ) : void
Map_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Map_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
OnAnglePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLayersPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMapActionChanged ( MapActionArgs args ) : void
PanCompleted ( ) : void
QuinticEaseOut ( double t, double b, double c, double d ) : double
RaiseAngleChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
RaiseViewBoundsChanged ( ) : void
RemoveMapLayers ( Layer _layer ) : void
ResetMapStatus ( ) : void
SetOriginAndResolution ( double currentResolution, Point2D currentOrigin, bool resetTransforms ) : void
ShowToolTip ( ) : void
StartPinch ( ) : void
Touch_FrameReported ( object sender, System.Windows.Input.TouchFrameEventArgs e ) : void
UpdateClip ( Size arrangeSize ) : void
_drawTimer_Tick ( object sender, EventArgs e ) : void
beginZoomToTargetBounds ( Rectangle2D targetBounds, bool skipAnimation ) : void
beginZoomToTargetBounds ( Rectangle2D targetBounds, bool skipAnimation, bool notDraw = false ) : 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, EventArgs e ) : void
panHelper_Panning ( object sender, EventArgs e ) : void
panLayerToMap ( Point pnt ) : Point2D
panTo ( Point2D center, bool skipAnimation ) : void
panTo ( Rectangle2D bounds ) : void
panTo ( Rectangle2D bounds, bool skipAnimation ) : void
raisePropertyChanged ( string propertyName ) : void
rootElementToMap ( Point pnt ) : Point2D
zoomAbout ( double factor, Point2D center, bool skipAnimation ) : void
zoomTo ( Rectangle2D bounds, bool skipAnimation ) : void
zoomToResolution ( double resolution, Point2D center, bool skipAnimation ) : void

Method Details

ArrangeOverride() protected method

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

CloseInfoWindow() public method

${mapping_Map_method_closeInfoWindow_D}
public CloseInfoWindow ( ) : 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

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.Web.Core.Point2D ${mapping_Map_method_mapToScreen_param_point2D}
return Point

OnApplyTemplate() public method

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

OnKeyDown() protected method

${mapping_Map_event_onKeyDown_D}
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs ${mapping_Map_event_onKeyDown_param_e}
return void

OnKeyUp() protected method

${mapping_Map_event_onKeyUp_D}
protected OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs ${mapping_Map_event_onKeyUp_param_e}
return void

OnMouseEnter() protected method

${ui_action_MapAction_event_onMouseEnter_D}
protected OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs ${ui_action_MapAction_event_onMouseEnter_param_e}
return void

OnMouseLeave() protected method

${ui_action_MapAction_event_onMouseLeave_D}
protected OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs ${ui_action_MapAction_event_onMouseLeave_param_e}
return void

OnMouseLeftButtonDown() protected method

${ui_action_MapAction_event_onMouseDown_D}
protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs ${ui_action_MapAction_event_onMouseDown_param_e}
return void

OnMouseLeftButtonUp() protected method

${ui_action_MapAction_event_onMouseUp_D}
protected OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs ${ui_action_MapAction_event_onMouseUp_param_e}
return void

OnMouseMove() protected method

${ui_action_MapAction_event_onMouseMove_D}
protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs ${ui_action_MapAction_event_onMouseMove_param_e}
return void

OnMouseRightButtonDown() protected method

${ui_action_MapAction_event_onMouseRightButtonDown_D}
protected OnMouseRightButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs ${ui_action_MapAction_event_onMouseRightButtonDown_param_e}
return void

OnMouseRightButtonUp() protected method

${ui_action_MapAction_event_onMouseRightButtonUp_D}
protected OnMouseRightButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs ${ui_action_MapAction_event_onMouseRightButtonUp_param_e}
return void

OnMouseWheel() protected method

${ui_action_MapAction_event_onMouseWheel_D}
protected OnMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void
e System.Windows.Input.MouseWheelEventArgs ${ui_action_MapAction_event_onMouseWheel_param_e}
return void

OpenInfoWindow() public method

${mapping_Map_method_openInfoWindow_D}
public OpenInfoWindow ( Point2D location, UIElement element ) : void
location SuperMap.Web.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.Web.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.Web.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.Web.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.Web.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.Web.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.Web.Core.Point2D ${mapping_Map_method_zoomToResolution_Double_Point2D_param_center}
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.Web.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,System.Windows AngleProperty
return System.Windows.DependencyProperty

LayersProperty public_oe static_oe property

${mapping_Map_field_layersProperty_D}
public static DependencyProperty,System.Windows LayersProperty
return System.Windows.DependencyProperty

PanDurationProperty public_oe static_oe property

${mapping_Map_field_PanDurationProperty_D}
public static DependencyProperty,System.Windows PanDurationProperty
return System.Windows.DependencyProperty

PanFactorProperty public_oe static_oe property

${mapping_Map_attribute_field_panFactorProperty_D}
public static DependencyProperty,System.Windows PanFactorProperty
return System.Windows.DependencyProperty

ZoomDurationProperty public_oe static_oe property

${mapping_Map_field_ZoomDurationProperty_D}
public static DependencyProperty,System.Windows ZoomDurationProperty
return System.Windows.DependencyProperty

ZoomFactorProperty public_oe static_oe property

${mapping_Map_attribute_field_zoomFactorProperty_D}
public static DependencyProperty,System.Windows ZoomFactorProperty
return System.Windows.DependencyProperty