This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo.mapsuite.mvcedition.mapbuilder [2015/09/21 03:33] admin |
thinkgeo.mapsuite.mvcedition.mapbuilder [2017/03/16 21:59] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ThinkGeo.MapSuite.MvcEdition.MapBuilder ====== | ====== ThinkGeo.MapSuite.MvcEdition.MapBuilder ====== | ||
+ | |||
+ | {{section>upgrade_map_suite_to_10.0}} | ||
+ | |||
Defines the fluent interface for configuring the Map control. | Defines the fluent interface for configuring the Map control. | ||
===== Inheritance Hierarchy ===== | ===== Inheritance Hierarchy ===== | ||
Line 9: | Line 12: | ||
** {{wiki:PublicMethod.gif|}} MapBuilder(Map) ** | ** {{wiki:PublicMethod.gif|}} MapBuilder(Map) ** | ||
- | Initializes a new instance of the MapBuilder. | + | * //Initializes a new instance of the MapBuilder.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Parameters == | == Parameters == | ||
* //map// | * //map// | ||
Line 20: | Line 23: | ||
** {{wiki:PublicMethod.gif|}} MapBuilder(Map,ViewContext) ** | ** {{wiki:PublicMethod.gif|}} MapBuilder(Map,ViewContext) ** | ||
- | Initializes a new instance of the MapBuilder. | + | * //Initializes a new instance of the MapBuilder.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Parameters == | == Parameters == | ||
* //map// | * //map// | ||
Line 37: | Line 40: | ||
** {{wiki:PublicMethod.gif|}} ZoomLevelSet(ZoomLevelSet) ** | ** {{wiki:PublicMethod.gif|}} ZoomLevelSet(ZoomLevelSet) ** | ||
- | Sets the ZoomLevelSet applied to the map. | + | * //Sets the ZoomLevelSet applied to the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 53: | Line 56: | ||
** {{wiki:PublicMethod.gif|}} MapBackground(BackgroundLayer) ** | ** {{wiki:PublicMethod.gif|}} MapBackground(BackgroundLayer) ** | ||
- | Sets the BackgroundLayer object that paints the map background. | + | * //Sets the BackgroundLayer object that paints the map background.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 69: | Line 72: | ||
** {{wiki:PublicMethod.gif|}} ContextMenu(Action<ContextMenuSetting>) ** | ** {{wiki:PublicMethod.gif|}} ContextMenu(Action<ContextMenuSetting>) ** | ||
- | Sets the ContextMenu of the map. | + | * //Sets the ContextMenu of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 85: | Line 88: | ||
** {{wiki:PublicMethod.gif|}} CurrentExtent(Double,Double,Double,Double) ** | ** {{wiki:PublicMethod.gif|}} CurrentExtent(Double,Double,Double,Double) ** | ||
- | Sets the current extent of the map. | + | * //Sets the current extent of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 113: | Line 116: | ||
** {{wiki:PublicMethod.gif|}} Cursor(CursorType) ** | ** {{wiki:PublicMethod.gif|}} Cursor(CursorType) ** | ||
- | Sets the cursor that appears when the mouse pointer is over the map control. | + | * //Sets the cursor that appears when the mouse pointer is over the map control.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 129: | Line 132: | ||
** {{wiki:PublicMethod.gif|}} WebConfigRegisterMode(WebConfigRegistrationMode) ** | ** {{wiki:PublicMethod.gif|}} 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. | + | * //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 == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 145: | Line 148: | ||
** {{wiki:PublicMethod.gif|}} ResourceDeploymentMode(ResourceDeploymentMode) ** | ** {{wiki:PublicMethod.gif|}} 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. | + | * //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 == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 161: | Line 164: | ||
** {{wiki:PublicMethod.gif|}} IsDefaultJavascriptLibraryDisabled(Boolean) ** | ** {{wiki:PublicMethod.gif|}} IsDefaultJavascriptLibraryDisabled(Boolean) ** | ||
- | Gets or sets whether the default javascript library is disabled or not. | + | * //Gets or sets whether the default javascript library is disabled or not.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 177: | Line 180: | ||
** {{wiki:PublicMethod.gif|}} MapUnit(GeographyUnit) ** | ** {{wiki:PublicMethod.gif|}} MapUnit(GeographyUnit) ** | ||
- | Sets the GeographyUnit of the map. | + | * //Sets the GeographyUnit of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 193: | Line 196: | ||
** {{wiki:PublicMethod.gif|}} ActiveBaseOverlay(Overlay) ** | ** {{wiki:PublicMethod.gif|}} ActiveBaseOverlay(Overlay) ** | ||
- | Sets the active base Overlay. | + | * //Sets the active base Overlay.// |
== Remarks == | == 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. | + | * //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 == | == Return Value == | ||
Line 209: | Line 212: | ||
** {{wiki:PublicMethod.gif|}} BackgroundOverlay(Overlay) ** | ** {{wiki:PublicMethod.gif|}} BackgroundOverlay(Overlay) ** | ||
- | Sets an Overlay object that displays as the background map by default. | + | * //Sets an Overlay object that displays as the background map by default.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 225: | Line 228: | ||
** {{wiki:PublicMethod.gif|}} StaticOverlay(Action<LayerOverlaySetting>) ** | ** {{wiki:PublicMethod.gif|}} StaticOverlay(Action<LayerOverlaySetting>) ** | ||
- | Configures a LayerOverlay object that displays as a background map. | + | * //Configures a LayerOverlay object that displays as a background map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 241: | Line 244: | ||
** {{wiki:PublicMethod.gif|}} DynamicOverlay(Action<LayerOverlaySetting>) ** | ** {{wiki:PublicMethod.gif|}} DynamicOverlay(Action<LayerOverlaySetting>) ** | ||
- | Configures a LayerOverlay object that can overlap other overlays. | + | * //Configures a LayerOverlay object that can overlap other overlays.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 257: | Line 260: | ||
** {{wiki:PublicMethod.gif|}} MarkerOverlay(Action<InMemoryMarkerOverlaySetting>) ** | ** {{wiki:PublicMethod.gif|}} MarkerOverlay(Action<InMemoryMarkerOverlaySetting>) ** | ||
- | Configures an InMemoryMarkerOverlay object that renders markers by the specified features. | + | * //Configures an InMemoryMarkerOverlay object that renders markers by the specified features.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 273: | Line 276: | ||
** {{wiki:PublicMethod.gif|}} EditOverlay(Action<EditFeatureOverlaySetting>) ** | ** {{wiki:PublicMethod.gif|}} EditOverlay(Action<EditFeatureOverlaySetting>) ** | ||
- | Configures an EditOverlay object, with which you can draw and edit shapes on client side. | + | * //Configures an EditOverlay object, with which you can draw and edit shapes on client side.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 289: | Line 292: | ||
** {{wiki:PublicMethod.gif|}} HighlightOverlay(Action<HighlightFeatureOverlaySetting>) ** | ** {{wiki:PublicMethod.gif|}} 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. | + | * //Configures a HighlightFeatureOverlay object, which draws its features on client side and can attach the specified click event and context menu to them.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 305: | Line 308: | ||
** {{wiki:PublicMethod.gif|}} AdornmentOverlay(Action<AdornmentOverlaySetting>) ** | ** {{wiki:PublicMethod.gif|}} AdornmentOverlay(Action<AdornmentOverlaySetting>) ** | ||
- | Configures a AdormentOverlay object in the map control. | + | * //Configures a AdormentOverlay object in the map control.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 321: | Line 324: | ||
** {{wiki:PublicMethod.gif|}} MapTools(Action<MapToolsSettingCollection>) ** | ** {{wiki:PublicMethod.gif|}} MapTools(Action<MapToolsSettingCollection>) ** | ||
- | Configures the MapTools in the map control. | + | * //Configures the MapTools in the map control.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 337: | Line 340: | ||
** {{wiki:PublicMethod.gif|}} CurrentScale(Double) ** | ** {{wiki:PublicMethod.gif|}} CurrentScale(Double) ** | ||
- | Sets the current scale of the map. | + | * //Sets the current scale of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 353: | Line 356: | ||
** {{wiki:PublicMethod.gif|}} CustomOverlays(Action<OverlayCollection>) ** | ** {{wiki:PublicMethod.gif|}} CustomOverlays(Action<OverlayCollection>) ** | ||
- | Configures the Overlays added to the map. | + | * //Configures the Overlays added to the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 369: | Line 372: | ||
** {{wiki:PublicMethod.gif|}} Popups(Action<PopupCollection>) ** | ** {{wiki:PublicMethod.gif|}} Popups(Action<PopupCollection>) ** | ||
- | Sets the popups of the map. | + | * //Sets the popups of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 385: | Line 388: | ||
** {{wiki:PublicMethod.gif|}} RestrictedExtent(RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} RestrictedExtent(RectangleShape) ** | ||
- | Sets an extent that limits the area to which the map can be navigated within. | + | * //Sets an extent that limits the area to which the map can be navigated within.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 401: | Line 404: | ||
** {{wiki:PublicMethod.gif|}} OnClientDrawEnd(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientDrawEnd(String) ** | ||
- | Sets the ClientDrawEnd event of the map. | + | * //Sets the ClientDrawEnd event of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 417: | Line 420: | ||
** {{wiki:PublicMethod.gif|}} OnClientEditEnd(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientEditEnd(String) ** | ||
- | Sets the ClientEditEnd event of the map. | + | * //Sets the ClientEditEnd event of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 433: | Line 436: | ||
** {{wiki:PublicMethod.gif|}} OnClientClick(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientClick(String) ** | ||
- | Sets the client click event of the map. | + | * //Sets the client click event of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 449: | Line 452: | ||
** {{wiki:PublicMethod.gif|}} OnClientExtentChanged(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientExtentChanged(String) ** | ||
- | Sets the ClientExtentChanged event of the map. | + | * //Sets the ClientExtentChanged event of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 465: | Line 468: | ||
** {{wiki:PublicMethod.gif|}} OnClientBaseOverlayChanged(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientBaseOverlayChanged(String) ** | ||
- | Sets the ClientBaseOverlayChanged event of the map. | + | * //Sets the ClientBaseOverlayChanged event of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 481: | Line 484: | ||
** {{wiki:PublicMethod.gif|}} OnClientDoubleClick(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientDoubleClick(String) ** | ||
- | Sets the ClientDoubleClick event of the map. | + | * //Sets the ClientDoubleClick event of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 497: | Line 500: | ||
** {{wiki:PublicMethod.gif|}} OnClientTrackShapeFinished(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientTrackShapeFinished(String) ** | ||
- | Sets the OnClientTrackShapeFinished event of the map. | + | * //Sets the OnClientTrackShapeFinished event of the map.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 513: | Line 516: | ||
** {{wiki:PublicMethod.gif|}} OnClientPopupsRequesting(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientPopupsRequesting(String) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 529: | Line 532: | ||
** {{wiki:PublicMethod.gif|}} OnClientPopupsRequested(String) ** | ** {{wiki:PublicMethod.gif|}} OnClientPopupsRequested(String) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 545: | Line 548: | ||
** {{wiki:PublicMethod.gif|}} Render() ** | ** {{wiki:PublicMethod.gif|}} Render() ** | ||
- | Sends the map control content to a provided HtmlTextWriter object, which wirtes the content to be rendered on the client. | + | * //Sends the map control content to a provided HtmlTextWriter object, which wirtes the content to be rendered on the client.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 557: | Line 560: | ||
** {{wiki:PublicMethod.gif|}} ToString() ** | ** {{wiki:PublicMethod.gif|}} ToString() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 569: | Line 572: | ||
** {{wiki:PublicMethod.gif|}} Name(String) ** | ** {{wiki:PublicMethod.gif|}} Name(String) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 585: | Line 588: | ||
** {{wiki:PublicMethod.gif|}} HtmlAttributes(Dictionary<String,String>) ** | ** {{wiki:PublicMethod.gif|}} HtmlAttributes(Dictionary<String,String>) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 601: | Line 604: | ||
** {{wiki:PublicMethod.gif|}} ScriptFileNames(Dictionary<String,String>) ** | ** {{wiki:PublicMethod.gif|}} ScriptFileNames(Dictionary<String,String>) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 617: | Line 620: | ||
** {{wiki:PublicMethod.gif|}} ScriptBlocks(Dictionary<String,String>) ** | ** {{wiki:PublicMethod.gif|}} ScriptBlocks(Dictionary<String,String>) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 633: | Line 636: | ||
** {{wiki:PublicMethod.gif|}} StyleSheetFileNames(IEnumerable<String>) ** | ** {{wiki:PublicMethod.gif|}} StyleSheetFileNames(IEnumerable<String>) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 649: | Line 652: | ||
** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 665: | Line 668: | ||
** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 677: | Line 680: | ||
** {{wiki:PublicMethod.gif|}} GetType() ** | ** {{wiki:PublicMethod.gif|}} GetType() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 690: | Line 693: | ||
** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 702: | Line 705: | ||
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == |