C# Class MapAround.UI.Web.MapControl

Inheritance: System.Web.UI.WebControls.WebControl, INamingContainer, ICallbackEventHandler
显示文件 Open project: gkrsu/maparound.core

Private Properties

Property Type Description
addChildControls void
beforePointRender void
beforePolygonRender void
beforePolylineRender void
changeZoom void
dataSourceNeeded void
dataSourceReadyToRelease void
doCenterMap void
doDragMap void
doHideSelection void
doLayerVisibilityChange void
doSelectObject void
doSetAllLayersVisibility void
dragMap void
encodeValue string
generateLayerList void
getScalePresentationData void
getWorkspace MapAround.Mapping.MapWorkspace
newButton System.Web.UI.HtmlControls.HtmlGenericControl
registerScripts void
setJsVariableName void
setWorkspace void
translateClientCoords void

Public Methods

Method Description
GetCallbackResult ( ) : string

Gets a callback result.

MapControl ( ) : System

Instantiates MapControl.

MapToScreen ( ICoordinate point ) : Point

Transforms map coordinates to screen coordinates.

MapToScreen ( double x, double y ) : Point

Transforms map coordinates to screen coordinates.

MapToScreenD ( ICoordinate point ) : ICoordinate

Translates the map coordinates to screen coordinates.

RaiseCallbackEvent ( string eventArgument ) : void

Raises a callback event.

ScreenToMap ( ICoordinate point ) : ICoordinate

Transforms screen coordinates to map coordinates.

ScreenToMap ( Point point ) : ICoordinate

Transforms screen coordinates to map coordinates.

ScreenToMap ( int x, int y ) : ICoordinate

Transforms screen coordinates to map coordinates.

SetScalePresentationData ( double scales, string labels ) : void

Sets the scale presentation data.

SwitchToMode ( MapControlMode mode ) : void

Switches mode of the map control to the specified value.

Protected Methods

Method Description
CreateChildControls ( ) : void

OnLoad ( EventArgs e ) : void

RenderContents ( System.Web.UI.HtmlTextWriter output ) : void

Private Methods

Method Description
addChildControls ( ) : void
beforePointRender ( object sender, FeatureRenderEventArgs e ) : void
beforePolygonRender ( object sender, FeatureRenderEventArgs e ) : void
beforePolylineRender ( object sender, FeatureRenderEventArgs e ) : void
changeZoom ( int deltaPercent, int mouseX, int mouseY ) : void
dataSourceNeeded ( object sender, FeatureDataSourceEventArgs e ) : void
dataSourceReadyToRelease ( object sender, FeatureDataSourceEventArgs e ) : void
doCenterMap ( int mx, int my ) : void
doDragMap ( int mdx, int mdy ) : void
doHideSelection ( ) : void
doLayerVisibilityChange ( int layerIndex ) : void
doSelectObject ( int mx, int my ) : void
doSetAllLayersVisibility ( bool visible ) : void
dragMap ( double dx, double dy ) : void
encodeValue ( string s ) : string
generateLayerList ( ) : void
getScalePresentationData ( BoundingRectangle viewbox, int maxSegmentLength, int &segmentLength, string &label ) : void
getWorkspace ( ) : MapWorkspace
newButton ( string id, bool display, string title, string imageUrl, string onclick ) : System.Web.UI.HtmlControls.HtmlGenericControl
registerScripts ( ) : void
setJsVariableName ( string name ) : void
setWorkspace ( MapWorkspace workspace ) : void
translateClientCoords ( string args, int startIndex ) : void

Method Details

CreateChildControls() protected method

protected CreateChildControls ( ) : void
return void

GetCallbackResult() public method

Gets a callback result.
public GetCallbackResult ( ) : string
return string

MapControl() public method

Instantiates MapControl.
public MapControl ( ) : System
return System

MapToScreen() public method

Transforms map coordinates to screen coordinates.
public MapToScreen ( ICoordinate point ) : Point
point ICoordinate A point on the map
return Point

MapToScreen() public method

Transforms map coordinates to screen coordinates.
public MapToScreen ( double x, double y ) : Point
x double X value on the map
y double X value on the map
return Point

MapToScreenD() public method

Translates the map coordinates to screen coordinates.
public MapToScreenD ( ICoordinate point ) : ICoordinate
point ICoordinate Coordinate point
return ICoordinate

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

RaiseCallbackEvent() public method

Raises a callback event.
public RaiseCallbackEvent ( string eventArgument ) : void
eventArgument string An argument string
return void

RenderContents() protected method

protected RenderContents ( System.Web.UI.HtmlTextWriter output ) : void
output System.Web.UI.HtmlTextWriter
return void

ScreenToMap() public method

Transforms screen coordinates to map coordinates.
public ScreenToMap ( ICoordinate point ) : ICoordinate
point ICoordinate A point of the screen
return ICoordinate

ScreenToMap() public method

Transforms screen coordinates to map coordinates.
public ScreenToMap ( Point point ) : ICoordinate
point Point A point on the screen
return ICoordinate

ScreenToMap() public method

Transforms screen coordinates to map coordinates.
public ScreenToMap ( int x, int y ) : ICoordinate
x int Client X value
y int Client Y value
return ICoordinate

SetScalePresentationData() public method

Sets the scale presentation data.
public SetScalePresentationData ( double scales, string labels ) : void
scales double An array of scales
labels string An array of labels
return void

SwitchToMode() public method

Switches mode of the map control to the specified value.
public SwitchToMode ( MapControlMode mode ) : void
mode MapControlMode A mode to switch
return void