Products
Professional Services
Demos and Downloads
Help and Support
Products
Professional Services
Demos and Downloads
Help and Support
This is an old revision of the document!
<!– Class –> This class represents the map control.
To use the map control in your Mvc application, serveral basic properties are required. The most important step is adding overlays, which generates images and stacks them over each other to form a map image.
| Name | Parameters | DeclaringType | Summary |
|---|
| Name | Parameters | DeclaringType | Summary |
|---|---|---|---|
CenterAt | PointShape | Moves the center of the map to a specified point.. | |
CenterAt | Double, Double | Moves the center of the map to a point specified by the provided X, Y world coordinates. | |
Equals | Object | Object | |
Fill | String, String | MvcControlBase | Fill an instance based on the input model name according to the input entity string |
Fill | String | MvcControlBase | Fill an instance according to the input entity string |
FromJson | String | Load this object from a json string. | |
GetBitmap | Save this object to a bitmap | ||
GetBitmap | Int32, Int32 | Gets a bitmap image based on the current map settings with the specified width and height. | |
GetHashCode | Object | ||
GetScreenDistanceBetweenTwoWorldPoints | PointShape, PointShape | Gets the distance in pixels between two specified points in world coordinates. | |
GetType | Object | ||
GetWorldDistanceBetweenTwoScreenPoints | ScreenPointF, ScreenPointF, DistanceUnit | Gets the distance in the specified distance unit from two screen points. | |
Pan | PanDirection, Int32 | Moves the map by the specified direction and percentage of the current extent. | |
Pan | Single, Int32 | Moves the map by the specified angle and the percentage of the current extent. | |
ToScreenCoordinate | PointShape | Returns a screen point from a point shape in world coordinates. | |
ToScreenCoordinate | Double, Double | Returns a point shape in screen coordinates from the specified X, Y world coordinates. | |
ToString | String | MvcControlBase | Convert current object based on mode name to an entity string. |
ToString | Object(overriden) | ||
ToWorldCoordinate | ScreenPointF | Returns a point shape in world coordinates from a ScreenPointF structure. | |
ToWorldCoordinate | Single, Single | Returns a point shape in world coordinates from the specified X, Y screen coordinates. | |
ZoomIn | Zooms the map in to the next zoomlevel. | ||
ZoomOut | Zooms the map out to the next zoomlevel. | ||
ZoomTo | PointShape, Double | Zooms the map to the center point and the scale that you specify. | |
ZoomToMarkers | IEnumerable<Marker> | Changes the current extent to the extent that includes all of the markers passed in. | |
ZoomToScale | Double | Zoom the map to a specific scale. |
| Name | Parameters | DeclaringType | Summary |
|---|---|---|---|
Finalize | Object | ||
MemberwiseClone | Object |
| Name | Return | DeclaringType | Summary |
|---|---|---|---|
ActiveBaseOverlay | Overlay | Gets or sets the active base overlay. | |
AdornmentOverlay | AdornmentOverlay | This property gets or sets the adornment overlay in the MapControl. | |
BackgroundOverlay | Overlay | Gets or sets an Overlay object that displays as the background map by default. | |
ClientScriptBlocks | Dictionary<String,String> | MvcControlBase | Gets the client script blocks which will be registered to the page. |
ClientScriptFileNames | Dictionary<String,String> | MvcControlBase | Gets the client script files which will be registered to the page. |
ContextMenu | ContextMenu | Gets or sets the shortcut menu associated with the map. | |
CurrentExtent | RectangleShape | Gets or sets the current extent of the map. | |
CurrentScale | Double | Gets or sets a double value that indicates the current scale of the map. | |
Cursor | CursorType | Gets or sets the cursor that appears when the mouse pointer is over the map control. | |
CustomCursorUri | Uri | Gets and sets a custom cursor image URI for the mouse cursor to use when you select 'CursorType.Custom'. | |
CustomOverlays | GeoKeyedCollection<Overlay> | Gets an Overlay collection, into which you can add different types of overlays. | |
DynamicOverlay | LayerOverlay | Gets a LayerOverlay object that can overlap other overlays. | |
EditOverlay | EditFeatureOverlay | Gets an EditOverlay object, with which you can draw and edit shapes at the client. | |
GeoCanvas | GeoCanvas | ||
Height | Unit | MvcControlBase | Gets or sets the height of the control. |
HeightInPixels | Double | Get the actual height, in pixels, of the map control. | |
HighlightOverlay | HighlightFeatureOverlay | Gets an HighlightFeatureOverlay object, which draws its features at the client side and can attach the specified click event and context menu to them. | |
HtmlAttributes | Dictionary<String,String> | MvcControlBase | Gets the customized html attributes of the control. |
Id | String | MvcControlBase | Gets the client id of the control, it will be calculated from Name property. |
IsDefaultJavascriptLibraryDisabled | Boolean | Gets or sets whether the default javascript library is disabled or not. | |
MapBackground | BackgroundLayer | Gets or sets the BackgroundLayer object that paints the map background. | |
MapTools | MapTools | Gets an object that contains all types of map controls for configuration. | |
MapUnit | GeographyUnit | Gets or sets the GeographyUnit for the map. | |
MarkerOverlay | InMemoryMarkerOverlay | Gets an InMemoryMarkerOverlay object that renders markers by the specified features. | |
Name | String | MvcControlBase | Gets the unique identifier name of the control. |
OnClientBaseOverlayChanged | String | Gets or sets the client-side script that executes when the current base overlay changes in the OverlaySwitcher. | |
OnClientClick | String | Gets or sets the client-side script that executes when you click on the map. | |
OnClientDoubleClick | String | Gets or sets the client-side script that executes when you double-click on the map. | |
OnClientDrawEnd | String | Gets or sets the client-side script that executes whenever a feature is drawn at the client. | |
OnClientEditEnd | String | Gets or sets the client-side script that executes whenever you finish editing a shape at the client. | |
OnClientExtentChanged | String | Gets or sets the client-side script that executes when the map extent changes. | |
OnClientPopupsRequested | String | ||
OnClientPopupsRequesting | String | ||
OnClientTrackShapeFinished | String | Gets or sets the client-side script that executes after tracking the shape. | |
Popups | GeoKeyedCollection<Popup> | Gets a Popup collection that holds all of the popups in the map. | |
ResourceDeploymentMode | ResourceDeploymentMode | Gets or sets a value that indicates whether the application allows map to copy its resource images under “~/theme/default/img/” and a css file “~/theme/default/style.css”. The default value is “ResourceDeploymentMode.Automatically”, otherwise, you need to copy images to the directory. | |
RestrictedExtent | RectangleShape | Gets or sets an extent that limits the area to which the map can be navigated within. | |
StaticOverlay | LayerOverlay | Gets a LayerOverlay object that displays as a background map. | |
StyleSheetFileNames | Collection<String> | MvcControlBase | Gets the css files which will be wrote to the client html. |
![]() Version | String | Gets the version of the map control. | |
ViewContext | ViewContext | MvcControlBase | Gets the ViewContext of the page which includes the control. |
Visible | Boolean | MvcControlBase | Gets or sets the visibility of the control. |
WebConfigRegisterMode | WebConfigRegistrationMode | Gets or 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. … … | |
Width | Unit | MvcControlBase | Gets or sets the width of the control. |
WidthInPixels | Double | Get the actual width, in pixels, of the map control. | |
ZoomLevelSet | ZoomLevelSet | Gets or sets the ZoomLevelSet applied to the map. |
| Name | Return | DeclaringType | Summary |
|---|---|---|---|
CenterX | Double | Gets or sets a double value for center X of current viewport. | |
CenterY | Double | Gets or sets a double value for center Y of current viewport. | |
ClientResolutions | Collection<Double> | Gets the resolution collection corresponding to the specified ZoomLevelSets applied to the map. | |
ClientScriptManager | MvcClientScriptManager | MvcControlBase | Gets the object which is used for managing, registering the client scripts. |
ClientStyleSheetManager | MvcClientStyleSheetManager | MvcControlBase | Gets the object which is used for managing, registering the css files used by the control. |
MaxExtent | RectangleShape | ||
PageRootPath | String | Gets a string value indicats the web page's root path for loading the default icons. |
| Name | Event Arguments | DeclaringType | Summary |
|---|
Initializes a new instance of the Map class.
Initializes a new instance of the Map class.
| Name | Type | Description |
|---|
Initializes a new instance of the Map class with identifier.
The unique identifier name of the control.
| Name | Type | Description |
|---|---|---|
| name | String<!– System.String –> |
Initializes a new instance of the Map class with identifier, map width, and map height specified.
Initializes a new instance of the Map class.
| Name | Type | Description |
|---|---|---|
| name | String<!– System.String –> | |
| width | Unit<!– System.Web.UI.WebControls.Unit –> | |
| height | Unit<!– System.Web.UI.WebControls.Unit –> |
Moves the center of the map to a specified point..
Moves the center of the map to a specified destination.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| worldPoint | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | The target point in world coordinates to set as the center of the map's CurrentExtent. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Moves the center of the map to a point specified by the provided X, Y world coordinates.
Moves the center of the map to a specified destination.
This method changes the map center to a point specified by the X, Y coordinates you provide.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| worldX | Double<!– System.Double –> | The X-value in world coordinates of the new center. |
| worldY | Double<!– System.Double –> | The Y-value in world coordinates of the new center. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
| Return Type | Description |
|---|---|
| Boolean<!– System.Boolean –> |
| Name | Type | Description |
|---|---|---|
| obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
Fill an instance based on the input model name according to the input entity string
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| modelName | String<!– System.String –> | the input model name |
| entityString | String<!– System.String –> | the input entity string |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Fill an instance according to the input entity string
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| entityString | String<!– System.String –> | the inpu entity string. |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Load this object from a json string.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| jsonString | String<!– System.String –> | a json string |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Save this object to a bitmap
| Return Type | Description |
|---|---|
| Bitmap<!– System.Drawing.Bitmap –> | a bitmap |
| Name | Type | Description |
|---|
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets a bitmap image based on the current map settings with the specified width and height.
Gets a bitmap image of the map.
This method generates a bitmap map image with the current map settings, using the image width and height that you specify.
| Return Type | Description |
|---|---|
| Bitmap<!– System.Drawing.Bitmap –> | A bitmap that is generated base on the current map settings. |
| Name | Type | Description |
|---|---|---|
| width | Int32<!– System.Int32 –> | The width of bitmap. |
| height | Int32<!– System.Int32 –> | The height of bitmap. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
| Return Type | Description |
|---|---|
| Int32<!– System.Int32 –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
Gets the distance in pixels between two specified points in world coordinates.
| Return Type | Description |
|---|---|
| Single<!– System.Single –> | The lengh in pixels between the two points. |
| Name | Type | Description |
|---|---|---|
| startPoint | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | The first point in world coordinates. |
| endpoint | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | The second point in world coordinates. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
| Return Type | Description |
|---|---|
| Type<!– System.Type –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
Gets the distance in the specified distance unit from two screen points.
| Return Type | Description |
|---|---|
| Double<!– System.Double –> | The distance value in the specified unit between two screen points. |
| Name | Type | Description |
|---|---|---|
| startPoint | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | The first point in screen coordinates. |
| endpoint | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | The second point in screen coordinates. |
| unitOfDistance | DistanceUnit<!– ThinkGeo.MapSuite.Core.DistanceUnit –> | The unit of return distance. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Moves the map by the specified direction and percentage of the current extent.
Moves the map by a certain offset.
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 <strong>CurrentExtent.Width* 0.2</strong> and the offset in the Y direction is <strong>CurrentExtent.Hight*0.2</strong>.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| panDirection | PanDirection<!– ThinkGeo.MapSuite.Core.PanDirection –> | Up, Down, Left, Right, UpperRight, LowerRight, UpperLeft, LowerLeft. |
| percentage | Int32<!– System.Int32 –> | The percentage of the current extent. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Moves the map by the specified angle and the percentage of the current extent.
Moves the map by a certain offset.
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 <strong>CurrentExtent.Width* 0.2</strong> and the offset in the Y direction is <strong>CurrentExtent.Hight*0.2</strong>.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| degree | Single<!– System.Single –> | The angle value that determines the panning direction. |
| percentage | Int32<!– System.Int32 –> | The percentage of the current extent. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Returns a screen point from a point shape in world coordinates.
Returns a screen point that is converted from the specified world coordinates.
This method converts the coordinates of a point shape to a point in screen coordinates.
| Return Type | Description |
|---|---|
| ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | A screen point in pixels. |
| Name | Type | Description |
|---|---|---|
| worldPoint | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | A point shape in world coordinates. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Returns a point shape in screen coordinates from the specified X, Y world coordinates.
Returns a screen point that is converted from the specified world coordinates.
This method converts X, Y world coordinates to a point in screen coordinates.
| Return Type | Description |
|---|---|
| ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | A screen point in pixels. |
| Name | Type | Description |
|---|---|---|
| worldX | Double<!– System.Double –> | The X world coordinate. |
| worldY | Double<!– System.Double –> | The Y world coordinate. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Convert current object based on mode name to an entity string.
| Return Type | Description |
|---|---|
| String<!– System.String –> | an entity string |
| Name | Type | Description |
|---|---|---|
| modelName | String<!– System.String –> | model name |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
| Return Type | Description |
|---|---|
| String<!– System.String –> |
| Name | Type | Description |
|---|
<!– System.Object(overriden) –> Go Back
Returns a point shape in world coordinates from a ScreenPointF structure.
Returns a point shape in world coordinates from screen coordinates.
This method converts a screen point to a point in world coordinates.
| Return Type | Description |
|---|---|
| PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | A point shape in world coordinates. |
| Name | Type | Description |
|---|---|---|
| screenPoint | ScreenPointF<!– ThinkGeo.MapSuite.Core.ScreenPointF –> | The point (in screen coordinates) to convert to world coordinates. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Returns a point shape in world coordinates from the specified X, Y screen coordinates.
Returns a point shape in world coordinates from the specified screen coordinates.
This method converts X, Y screen coordinates to a point shape in world coodinates.
| Return Type | Description |
|---|---|
| PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | A point shape in world coordinates. |
| Name | Type | Description |
|---|---|---|
| screenX | Single<!– System.Single –> | The X-value in pixels referenced to the screen origin. |
| screenY | Single<!– System.Single –> | The Y-value in pixels referenced to the screen origin. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Zooms the map in to the next zoomlevel.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Zooms the map out to the next zoomlevel.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Zooms the map to the center point and the scale that you specify.
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 Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| center | PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> | The new center point of the map. |
| scale | Double<!– System.Double –> | The new scale that the map will zoom to. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Changes the current extent to the extent that includes all of the markers passed in.
This method changes the map's current extent to the smallest BoundingBox that includes all of the markers you specified.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| markers | IEnumerable<Marker><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.MvcEdition.Marker} –> | The markers that will be included in the new extent. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Zoom the map to a specific scale.
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 Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| targetScale | Double<!– System.Double –> | The scale the map will zoom to. |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
| Return Type | Description |
|---|---|
| Object<!– System.Object –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
Gets or sets the active base overlay.
The map can contain multiple base overlays, though only one of them can be displayed at a time. The <strong>ActiveBaseOverlay</strong> property specifies the one that is currently displayed. When you switch the base overlays in the <strong>OverlaySwitcher</strong>, the currently selected overlay will be synchronized to this property after postback.
| Return Type |
|---|
| Overlay<!– ThinkGeo.MapSuite.MvcEdition.Overlay –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
This property gets or sets the adornment overlay in the MapControl.
| Return Type |
|---|
| AdornmentOverlay<!– ThinkGeo.MapSuite.MvcEdition.AdornmentOverlay –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets an Overlay object that displays as the background map by default.
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 <strong>ActiveBaseOverlay</strong> property.
| Return Type |
|---|
| Overlay<!– ThinkGeo.MapSuite.MvcEdition.Overlay –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets the client script blocks which will be registered to the page.
| Return Type |
|---|
| Dictionary<String,String><!– System.Collections.Generic.Dictionary{System.String,System.String} –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Gets the client script files which will be registered to the page.
| Return Type |
|---|
| Dictionary<String,String><!– System.Collections.Generic.Dictionary{System.String,System.String} –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Gets or sets the shortcut menu associated with the map.
| Return Type |
|---|
| ContextMenu<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the current extent of the map.
| Return Type |
|---|
| RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets a double value that indicates the current scale of the map.
| Return Type |
|---|
| Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the cursor that appears when the mouse pointer is over the map control.
| Return Type |
|---|
| CursorType<!– ThinkGeo.MapSuite.MvcEdition.CursorType –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets and sets a custom cursor image URI for the mouse cursor to use when you select 'CursorType.Custom'.
| Return Type |
|---|
| Uri<!– System.Uri –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets an Overlay collection, into which you can add different types of overlays.
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 Type |
|---|
| GeoKeyedCollection<Overlay><!– ThinkGeo.MapSuite.MvcEdition.GeoKeyedCollection{ThinkGeo.MapSuite.MvcEdition.Overlay} –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets a LayerOverlay object that can overlap other overlays.
| Return Type |
|---|
| LayerOverlay<!– ThinkGeo.MapSuite.MvcEdition.LayerOverlay –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets an EditOverlay object, with which you can draw and edit shapes at the client.
| Return Type |
|---|
| EditFeatureOverlay<!– ThinkGeo.MapSuite.MvcEdition.EditFeatureOverlay –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
| Return Type |
|---|
| GeoCanvas<!– ThinkGeo.MapSuite.Core.GeoCanvas –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the height of the control.
| Return Type |
|---|
| Unit<!– System.Web.UI.WebControls.Unit –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Get the actual height, in pixels, of the map control.
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.
<strong>Note:</strong> When the map height is a percent value, the <strong>HeightInPixels</strong> 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 Type |
|---|
| Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets an HighlightFeatureOverlay object, which draws its features at the client side and can attach the specified click event and context menu to them.
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.
<strong>Note:</strong> 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 Type |
|---|
| HighlightFeatureOverlay<!– ThinkGeo.MapSuite.MvcEdition.HighlightFeatureOverlay –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets the customized html attributes of the control.
| Return Type |
|---|
| Dictionary<String,String><!– System.Collections.Generic.Dictionary{System.String,System.String} –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Gets the client id of the control, it will be calculated from Name property.
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Gets or sets whether the default javascript library is disabled or not.
| Return Type |
|---|
| Boolean<!– System.Boolean –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the BackgroundLayer object that paints the map background.
This property determines the background of the map. The map will use the brush defined on this BackgroundLayer to paint the background.
| Return Type |
|---|
| BackgroundLayer<!– ThinkGeo.MapSuite.Core.BackgroundLayer –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets an object that contains all types of map controls for configuration.
| Return Type |
|---|
| MapTools<!– ThinkGeo.MapSuite.MvcEdition.MapTools –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the GeographyUnit for the map.
| Return Type |
|---|
| GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets an InMemoryMarkerOverlay object that renders markers by the specified features.
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 Type |
|---|
| InMemoryMarkerOverlay<!– ThinkGeo.MapSuite.MvcEdition.InMemoryMarkerOverlay –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets the unique identifier name of the control.
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Gets or sets the client-side script that executes when the current base overlay changes in the OverlaySwitcher.
There is a default parameter: e, which includes a parameter “baseLayer” which is the name of the layer
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the client-side script that executes when you click on the map.
There is a default parameter:e, which includes one parameter: “worldXY”
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the client-side script that executes when you double-click on the map.
There is a default parameter:e, which includes one parameter: “worldXY”
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the client-side script that executes whenever a feature is drawn at the client.
The <strong>OnClientDrawEnd</strong> 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 Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the client-side script that executes whenever you finish editing a shape at the client.
The <strong>OnClientEditEnd</strong> 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 Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the client-side script that executes when the map extent changes.
There is a default parameter: e, which includes two parameters, “extent”, “scale”
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the client-side script that executes after tracking the shape.
There is a default parameter: e, which represents the editing geometry in json format
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets a Popup collection that holds all of the popups in the map.
| Return Type |
|---|
| GeoKeyedCollection<Popup><!– ThinkGeo.MapSuite.MvcEdition.GeoKeyedCollection{ThinkGeo.MapSuite.MvcEdition.Popup} –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets a value that indicates whether the application allows map to copy its resource images under “~/theme/default/img/” and a css file “~/theme/default/style.css”. The default value is “ResourceDeploymentMode.Automatically”, otherwise, you need to copy images to the directory.
| Return Type |
|---|
| ResourceDeploymentMode<!– ThinkGeo.MapSuite.MvcEdition.ResourceDeploymentMode –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets an extent that limits the area to which the map can be navigated within.
| Return Type |
|---|
| RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets a LayerOverlay object that displays as a background map.
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 Type |
|---|
| LayerOverlay<!– ThinkGeo.MapSuite.MvcEdition.LayerOverlay –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets the css files which will be wrote to the client html.
| Return Type |
|---|
| Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
<!– static –> Gets the version of the map control.
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets the ViewContext of the page which includes the control.
| Return Type |
|---|
| ViewContext<!– System.Web.Mvc.ViewContext –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Gets or sets the visibility of the control.
| Return Type |
|---|
| Boolean<!– System.Boolean –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Gets or 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. … …
| Return Type |
|---|
| WebConfigRegistrationMode<!– ThinkGeo.MapSuite.MvcEdition.WebConfigRegistrationMode –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the width of the control.
| Return Type |
|---|
| Unit<!– System.Web.UI.WebControls.Unit –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Get the actual width, in pixels, of the map control.
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.
<strong>Note:</strong> When the map width is a percent value, the <strong>WidthInPixels</strong> 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 Type |
|---|
| Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets the ZoomLevelSet applied to the map.
| Return Type |
|---|
| ZoomLevelSet<!– ThinkGeo.MapSuite.Core.ZoomLevelSet –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets a double value for center X of current viewport.
| Return Type |
|---|
| Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets or sets a double value for center Y of current viewport.
| Return Type |
|---|
| Double<!– System.Double –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets the resolution collection corresponding to the specified ZoomLevelSets applied to the map.
| Return Type |
|---|
| Collection<Double><!– System.Collections.ObjectModel.Collection{System.Double} –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets the object which is used for managing, registering the client scripts.
| Return Type |
|---|
| MvcClientScriptManager<!– ThinkGeo.MapSuite.MvcEdition.MvcClientScriptManager –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
Gets the object which is used for managing, registering the css files used by the control.
| Return Type |
|---|
| MvcClientStyleSheetManager<!– ThinkGeo.MapSuite.MvcEdition.MvcClientStyleSheetManager –> |
<!– ThinkGeo.MapSuite.MvcEdition.MvcControlBase –> Go Back
| Return Type |
|---|
| RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
Gets a string value indicats the web page's root path for loading the default icons.
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.Map –> Go Back
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.