User Tools

Site Tools


thinkgeo.mapsuite.mvcedition.mapbuilder

ThinkGeo.MapSuite.MvcEdition.MapBuilder

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

Defines the fluent interface for configuring the Map control.

Inheritance Hierarchy

Members Summary

Public Constructors

MapBuilder(Map)

  • Initializes a new instance of the MapBuilder.
Remarks
  • N/A
Parameters
  • map
    • Type:Map
    • Description:The map control instance.

MapBuilder(Map,ViewContext)

  • Initializes a new instance of the MapBuilder.
Remarks
  • N/A
Parameters
  • map
    • Type:Map
    • Description:The map control instance.
  • viewContext
    • Type:ViewContext
    • Description:The ViewContext of the page.

Protected Constructors

Public Methods

ZoomLevelSet(ZoomLevelSet)

  • Sets the ZoomLevelSet applied to the map.
Remarks
  • N/A
Return Value
Parameters
  • zoomLevelSet
    • Description:ZoomLevels that will be applied to map.

MapBackground(BackgroundLayer)

  • Sets the BackgroundLayer object that paints the map background.
Remarks
  • N/A
Return Value
Parameters
  • backgroundLayer

ContextMenu(Action<ContextMenuSetting>)

  • Sets the ContextMenu of the map.
Remarks
  • N/A
Return Value
Parameters

CurrentExtent(Double,Double,Double,Double)

  • Sets the current extent of the map.
Remarks
  • N/A
Return Value
Parameters
  • minX
    • Type:Double
    • Description:This property specifies the minimum X value. This is also the upper left X.
  • maxY
    • Type:Double
    • Description:This property specifies the maximum Y value. This is also the upper left Y.
  • maxX
    • Type:Double
    • Description:This property specifies the maximum X value. This is also the lower right X.
  • minY
    • Type:Double
    • Description:This property specifies the minimum Y value. This is also the lower right Y.

Cursor(CursorType)

  • Sets the cursor that appears when the mouse pointer is over the map control.
Remarks
  • N/A
Return Value
Parameters
  • cursorType
    • Description:The type of the cursor that appears when the pointer moves over the map.

WebConfigRegisterMode(WebConfigRegistrationMode)

  • Sets a value that indicates whether the application allows map to register the Web.config on the fly in runtime. The default value is “WebConfigRegisterMode.AutoRegistered”, otherwise, you need to copy the code below to the web.config manually.
Remarks
  • N/A
Return Value
Parameters
  • webConfigRegisterMode
    • Description:The register mode that indicates whether the application allows map to register the Web.config on the fly in runtime.

ResourceDeploymentMode(ResourceDeploymentMode)

  • sets a value that indicates whether the application allows map to copy its resource images under “~/theme/default/img/”. The default value is “ResourceDeploymentMode.Automatically”, otherwise, you need to copy images to the directory.
Remarks
  • N/A
Return Value
Parameters
  • resourceDeploymentMode
    • Description:The depolymentMode indicates whether the control creates and releases the theme files to application folder automatically.

IsDefaultJavascriptLibraryDisabled(Boolean)

  • Gets or sets whether the default javascript library is disabled or not.
Remarks
  • N/A
Return Value
Parameters
  • disabled
    • Type:Boolean
    • Description:N/A

MapUnit(GeographyUnit)

  • Sets the GeographyUnit of the map.
Remarks
  • N/A
Return Value
Parameters
  • mapUnit

ActiveBaseOverlay(Overlay)

  • Sets the active base Overlay.
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 OverSwitcher, the currently selected overlay will be synchronized to this property after postback.
Return Value
Parameters
  • overlay
    • Type:Overlay
    • Description:The overlay selected from the overlay's collection.

BackgroundOverlay(Overlay)

  • Sets an Overlay object that displays as the background map by default.
Remarks
  • N/A
Return Value
Parameters
  • overlay
    • Type:Overlay
    • Description:A LayerOverlay object that displays as the background map by default.

StaticOverlay(Action<LayerOverlaySetting>)

  • Configures a LayerOverlay object that displays as a background map.
Remarks
  • N/A
Return Value
Parameters
  • configOverlayAction

DynamicOverlay(Action<LayerOverlaySetting>)

  • Configures a LayerOverlay object that can overlap other overlays.
Remarks
  • N/A
Return Value
Parameters
  • configOverlayAction

MarkerOverlay(Action<InMemoryMarkerOverlaySetting>)

  • Configures an InMemoryMarkerOverlay object that renders markers by the specified features.
Remarks
  • N/A
Return Value
Parameters

EditOverlay(Action<EditFeatureOverlaySetting>)

  • Configures an EditOverlay object, with which you can draw and edit shapes on client side.
Remarks
  • N/A
Return Value
Parameters

HighlightOverlay(Action<HighlightFeatureOverlaySetting>)

  • Configures a HighlightFeatureOverlay object, which draws its features on client side and can attach the specified click event and context menu to them.
Remarks
  • N/A
Return Value
Parameters

AdornmentOverlay(Action<AdornmentOverlaySetting>)

  • Configures a AdormentOverlay object in the map control.
Remarks
  • N/A
Return Value
Parameters
  • configAdormentOverlaySettingAction

MapTools(Action<MapToolsSettingCollection>)

  • Configures the MapTools in the map control.
Remarks
  • N/A
Return Value
Parameters

CurrentScale(Double)

  • Sets the current scale of the map.
Remarks
  • N/A
Return Value
Parameters
  • scale
    • Type:Double
    • Description:scale value.

CustomOverlays(Action<OverlayCollection>)

  • Configures the Overlays added to the map.
Remarks
  • N/A
Return Value
Parameters
  • addOverlayAction

Popups(Action<PopupCollection>)

  • Sets the popups of the map.
Remarks
  • N/A
Return Value
Parameters
  • addPopupAction

RestrictedExtent(RectangleShape)

  • Sets an extent that limits the area to which the map can be navigated within.
Remarks
  • N/A
Return Value
Parameters

OnClientDrawEnd(String)

  • Sets the ClientDrawEnd event of the map.
Remarks
  • N/A
Return Value
Parameters
  • clientDrawEnd
    • Type:String
    • Description:The JavaScript function name.

OnClientEditEnd(String)

  • Sets the ClientEditEnd event of the map.
Remarks
  • N/A
Return Value
Parameters
  • clientEditEnd
    • Type:String
    • Description:The JavaScript function name.

OnClientClick(String)

  • Sets the client click event of the map.
Remarks
  • N/A
Return Value
Parameters
  • clientClick
    • Type:String
    • Description:The JavaScript function name.

OnClientExtentChanged(String)

  • Sets the ClientExtentChanged event of the map.
Remarks
  • N/A
Return Value
Parameters
  • clientExtentChanged
    • Type:String
    • Description:The JavaScript function name.

OnClientBaseOverlayChanged(String)

  • Sets the ClientBaseOverlayChanged event of the map.
Remarks
  • N/A
Return Value
Parameters
  • clientBaseOverlayChanged
    • Type:String
    • Description:The JavaScript function name.

OnClientDoubleClick(String)

  • Sets the ClientDoubleClick event of the map.
Remarks
  • N/A
Return Value
Parameters
  • clientDoubleClick
    • Type:String
    • Description:The JavaScript function name.

OnClientTrackShapeFinished(String)

  • Sets the OnClientTrackShapeFinished event of the map.
Remarks
  • N/A
Return Value
Parameters
  • clientTrackShapeFinishedEventHandler
    • Type:String
    • Description:The JavaScript function name.

OnClientPopupsRequesting(String)

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

OnClientPopupsRequested(String)

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

Render()

  • Sends the map control content to a provided HtmlTextWriter object, which wirtes the content to be rendered on the client.
Remarks
  • N/A
Return Value
Parameters

ToString()

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

Name(String)

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

HtmlAttributes(Dictionary<String,String>)

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

ScriptFileNames(Dictionary<String,String>)

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

ScriptBlocks(Dictionary<String,String>)

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

StyleSheetFileNames(IEnumerable<String>)

  • N/A
Remarks
  • N/A
Return Value
Parameters
  • cssFileNames
    • Type:IEnumerable<String>
    • Description:N/A

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

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

Protected Properties

Control

N/A

Remarks

N/A

Return Value

Public Events

thinkgeo.mapsuite.mvcedition.mapbuilder.txt · Last modified: 2017/03/16 21:59 (external edit)