User Tools

Site Tools


api:thinkgeo.mapsuite.mvc.map

ThinkGeo.MapSuite.Mvc.Map

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Mvc.MvcControlBase
      • ThinkGeo.MapSuite.Mvc.Map

Members Summary

Public Constructors

Map()

  • Initializes a new instance of the Map class.
Remarks
  • N/A
Parameters

Map(String)

  • Initializes a new instance of the Map class with identifier.
Remarks
  • N/A
Parameters
  • name
    • Type:String
    • Description:N/A

Map(String,Unit,Unit)

  • Initializes a new instance of the Map class with identifier, map width, and map height specified.
Remarks
  • N/A
Parameters
  • name
    • Type:String
    • Description:N/A
  • width
    • Type:Unit
    • Description:N/A
  • height
    • Type:Unit
    • Description:N/A

Protected Constructors

Public Methods

ToScreenCoordinate(Double,Double)

  • N/A
Remarks
  • This method converts X, Y world coordinates to a point in screen coordinates.
Return Value
Parameters
  • worldX
    • Type:Double
    • Description:The X world coordinate.
  • worldY
    • Type:Double
    • Description:The Y world coordinate.

ToScreenCoordinate(PointShape)

  • N/A
Remarks
  • This method converts the coordinates of a point shape to a point in screen coordinates.
Return Value
Parameters
  • worldPoint
    • Description:A point shape in world coordinates.

ToWorldCoordinate(Single,Single)

  • N/A
Remarks
  • This method converts X, Y screen coordinates to a point shape in world coodinates.
Return Value
  • Description:A point shape in world coordinates.
Parameters
  • screenX
    • Type:Single
    • Description:The X-value in pixels referenced to the screen origin.
  • screenY
    • Type:Single
    • Description:The Y-value in pixels referenced to the screen origin.

ToWorldCoordinate(ScreenPointF)

  • N/A
Remarks
  • This method converts a screen point to a point in world coordinates.
Return Value
  • Description:A point shape in world coordinates.
Parameters
  • screenPoint
    • Description:The point (in screen coordinates) to convert to world coordinates.

CenterAt(PointShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • worldPoint
    • Description:The target point in world coordinates to set as the center of the map's CurrentExtent.

CenterAt(Double,Double)

  • N/A
Remarks
  • This method changes the map center to a point specified by the X, Y coordinates you provide.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • worldX
    • Type:Double
    • Description:The X-value in world coordinates of the new center.
  • worldY
    • Type:Double
    • Description:The Y-value in world coordinates of the new center.

ZoomTo(PointShape,Double)

  • N/A
Remarks
  • The map will be panned to the new center and zoomed to the scale that you specify. If the new scale is not within the scales of the zoomlevels, the map will snap to the nearest upper zoomlevel. Thus, the scale the map finally zooms to may not be exactly the same as the scale you specified.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • center
    • Description:The new center point of the map.
  • scale
    • Type:Double
    • Description:The new scale that the map will zoom to.

ZoomIn()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

ZoomOut()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

ZoomToMarkers(IEnumerable<Marker>)

  • N/A
Remarks
  • This method changes the map's current extent to the smallest BoundingBox that includes all of the markers you specified.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • markers
    • Type:IEnumerable<Marker>
    • Description:The markers that will be included in the new extent.

ZoomToScale(Double)

  • N/A
Remarks
  • This method will not affect the center of the map. It zooms the map to the zoomlevel whose scale is larger and nearest to the scale specified. For example, if you specify a scale that is between two zoomlevels, the map will snap to the nearest upper zoomlevel. So the map's final scale might not be equal to the specified scale after you call this method.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • targetScale
    • Type:Double
    • Description:The scale the map will zoom to.

GetBitmap()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Bitmap
  • Description:a bitmap
Parameters

GetBitmap(Int32,Int32)

  • N/A
Remarks
  • This method generates a bitmap map image with the current map settings, using the image width and height that you specify.
Return Value
  • Type:Bitmap
  • Description:A bitmap that is generated base on the current map settings.
Parameters
  • width
    • Type:Int32
    • Description:The width of bitmap.
  • height
    • Type:Int32
    • Description:The height of bitmap.

FromJson(String)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • jsonString
    • Type:String
    • Description:a json string

GetScreenDistanceBetweenTwoWorldPoints(PointShape,PointShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Single
  • Description:The lengh in pixels between the two points.
Parameters
  • startPoint
    • Description:The first point in world coordinates.
  • endpoint
    • Description:The second point in world coordinates.

GetWorldDistanceBetweenTwoScreenPoints(ScreenPointF,ScreenPointF,DistanceUnit)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double
  • Description:The distance value in the specified unit between two screen points.
Parameters
  • startPoint
    • Description:The first point in screen coordinates.
  • endpoint
    • Description:The second point in screen coordinates.
  • unitOfDistance
    • Description:The unit of return distance.

Pan(PanDirection,Int32)

  • N/A
Remarks
  • This method caculates the panning offset by the current extent and the percentage. If the percentage is 20, the panning offset in the X direction is CurrentExtent.Width* 0.2 and the offset in the Y direction is CurrentExtent.Hight*0.2.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • panDirection
    • Description:Up, Down, Left, Right, UpperRight, LowerRight, UpperLeft, LowerLeft.
  • percentage
    • Type:Int32
    • Description:The percentage of the current extent.

Pan(Single,Int32)

  • N/A
Remarks
  • This method moves the map by the angle and the percentage that you specify.The angle starts from the east and increases counterclockwise. For example, angle 0 represents precisely east and angle 90 represents precisely north.The percentage specifies the offset related to the current extent. If the percentage is 20, the panning offset in the X direction is CurrentExtent.Width* 0.2 and the offset in the Y direction is CurrentExtent.Hight*0.2.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • degree
    • Type:Single
    • Description:The angle value that determines the panning direction.
  • percentage
    • Type:Int32
    • Description:The percentage of the current extent.

Fill(String)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • entityString
    • Type:String
    • Description:N/A

Fill(String,String)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • modelName
    • Type:String
    • Description:N/A
  • entityString
    • Type:String
    • Description:N/A

ToString(String)

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters
  • modelName
    • Type:String
    • Description:N/A

ToString()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

LoadState()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

PreRender()

  • N/A
Remarks
  • This method notifies the Mvc control to perform any necessary prerendering steps prior to rendering content and save state.
Return Value
  • Type:Void
  • Description:N/A
Parameters

Render(HtmlTextWriter)

  • N/A
Remarks
  • When developing a custom server control, you can override this method to generate conteol for a page.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • htmlTextWriter
    • Type:HtmlTextWriter
    • Description:The HtmlTextWriter object that receives the Mvc control content.

SaveState()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

GeoCanvas

  • N/A
Remarks
  • N/A
Return Value

ZoomLevelSet

  • N/A
Remarks
  • N/A
Return Value

MapBackground

  • N/A
Remarks
  • This property determines the background of the map. The map will use the brush defined on this BackgroundLayer to paint the background.
Return Value

ContextMenu

  • N/A
Remarks
  • N/A
Return Value

CurrentExtent

  • N/A
Remarks
  • N/A
Return Value

Cursor

  • N/A
Remarks
  • N/A
Return Value

WebConfigRegisterMode

  • N/A
Remarks
  • N/A
Return Value

ResourceDeploymentMode

  • N/A
Remarks
  • N/A
Return Value

MapUnit

  • N/A
Remarks
  • N/A
Return Value

ActiveBaseOverlay

  • N/A
Remarks
  • The map can contain multiple base overlays, though only one of them can be displayed at a time. The ActiveBaseOverlay property specifies the one that is currently displayed. When you switch the base overlays in the OverlaySwitcher, the currently selected overlay will be synchronized to this property after postback.
Return Value

IsDefaultJavascriptLibraryDisabled

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

BackgroundOverlay

  • N/A
Remarks
  • The background overlay is one of the base overlays of the map. It can only be the base overlay. If you set a non-base overlay to it, there will be an exception thrown. The background overlay is the active base overlay by default, if you do not set the ActiveBaseOverlay property.
Return Value

StaticOverlay

  • N/A
Remarks
  • The StaticOverlay is a shortcut way for you to add a LayerOverlay to the map. It can only be the base overlay. It is not the active base overlay by default. You need to set it to the ActiveBaseOverlay property in order to display it.
Return Value

DynamicOverlay

  • N/A
Remarks
  • N/A
Return Value

MarkerOverlay

  • N/A
Remarks
  • The MarkerOverlay overlaps on the base overlay and other non-base overlays. It displays markers based on the features you add to it. If you want to render markers by feature source, use the FeatureSourceMarkerOverlay and add it to the CustomOverlays collection.
Return Value

CustomOverlays

  • N/A
Remarks
  • You can create any type of Overlay object and add it to the CustomOverlays collection. The CustomOverlays collection will disable the BackgroundOverlay, StaticOverlay, DynamicOverlay and MarkerOverlay properties. This means you have two options for using overlays: Either set those overlay properties, or use the CustomOverlays collection. The CustomOverlays collection has higher priority and is more flexible. By contrast, the overlay properties act as shortcut way to use overlays.
Return Value
Remarks
  • N/A
Return Value

HighlightOverlay

  • N/A
Remarks
  • The HighlightOverlay actually serializes all its features to the client for drawing. These are client features whose styles changes when you mouse over them, thus generating the mouse-over highlight effect.Note: Performance may be slow when the features added to the HighlightOverlay contain many vertices, because serializing and drawing these features at the client side may take some time.
Return Value

AdornmentOverlay

  • N/A
Remarks
  • N/A
Return Value

MapTools

  • N/A
Remarks
  • N/A
Return Value

WidthInPixels

  • N/A
Remarks
  • When you set your map's width with percentage values (for example, 100%), you might want to know the actual pixel width of your map at a given time. This property returns the map's pixel width as determined by the browser.Note: When the map width is a percent value, the WidthInPixels is double.NaN only until a postback generates. When the page postbacks, the actual width of the map will be synchronized to this property.
Return Value
  • Type:Double

HeightInPixels

  • N/A
Remarks
  • When you set your map's height with percentage values (for example, 100%), you might want to know the actual pixel height of your map at a given time. This property returns the map's pixel height as determined by the browser.Note: When the map height is a percent value, the HeightInPixels is double.NaN only until a postback generates. When the page postbacks, the actual height of the map will be synchronized to this property.
Return Value
  • Type:Double

OnClientDrawEnd

  • N/A
Remarks
  • The OnClientDrawEnd property holds the Javascript function that will be executed whenever you finish drawing a shape. The Javascript function takes one parameter, which is the feature that you just drew. You can use this parameter to add extra data to the feature (add to feature.fieldValues). You can then retrieve that extra data from the feature's ColumnValues collection after postback.
Return Value
  • Type:String

OnClientEditEnd

  • N/A
Remarks
  • The OnClientEditEnd property holds the Javascript function that will be executed whenever you finish editing a shape. The Javascript function takes one parameter, which is the feature that you just edited. You can use this parameter to edit the extra data of the feature (feature.fieldValues). You can then retrieve that extra data from the feature's ColumnValues collection after postback.
Return Value
  • Type:String

OnClientClick

  • N/A
Remarks
  • There is a default parameter:e, which includes one parameter: “worldXY”
Return Value
  • Type:String

OnClientDoubleClick

  • N/A
Remarks
  • There is a default parameter:e, which includes one parameter: “worldXY”
Return Value
  • Type:String

OnClientExtentChanged

  • N/A
Remarks
  • There is a default parameter: e, which includes two parameters, “extent”, “scale”
Return Value
  • Type:String

OnClientBaseOverlayChanged

  • N/A
Remarks
  • There is a default parameter: e, which includes a parameter “baseLayer” which is the name of the layer
Return Value
  • Type:String

OnClientTrackShapeFinished

  • N/A
Remarks
  • There is a default parameter: e, which represents the editing geometry in json format
Return Value
  • Type:String

OnClientPopupsRequesting

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

OnClientPopupsRequested

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

Popups

  • N/A
Remarks
  • N/A
Return Value
Remarks
  • N/A
Return Value

CurrentScale

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double

CustomCursorUri

  • N/A
Remarks
  • N/A
Return Value
  • Type:Uri

Id

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

Name

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

Width

  • N/A
Remarks
  • N/A
Return Value
  • Type:Unit

Height

  • N/A
Remarks
  • N/A
Return Value
  • Type:Unit

Visible

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean

HtmlAttributes

  • N/A
Remarks
  • N/A
Return Value
  • Type:Dictionary<String,String>

ClientScriptFileNames

  • N/A
Remarks
  • N/A
Return Value
  • Type:Dictionary<String,String>

ClientScriptBlocks

  • N/A
Remarks
  • N/A
Return Value
  • Type:Dictionary<String,String>

StyleSheetFileNames

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<String>

ViewContext

  • N/A
Remarks
  • N/A
Return Value
  • Type:ViewContext

Protected Properties

ClientResolutions

  • N/A
Remarks
  • N/A
Return Value
  • Type:Collection<Double>

MaxExtent

  • N/A
Remarks
  • N/A
Return Value

PageRootPath

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

PopupsDataBinding

  • N/A
Remarks
  • N/A
Return Value

UniqueControlName

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

CenterX

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double

CenterY

  • N/A
Remarks
  • N/A
Return Value
  • Type:Double

Zoom

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32

ClientScriptManager

  • N/A
Remarks
  • N/A
Return Value

ClientStyleSheetManager

  • N/A
Remarks
  • N/A
Return Value

Public Events

api/thinkgeo.mapsuite.mvc.map.txt · Last modified: 2017/01/11 06:58 (external edit)