ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
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.
This class represents the map control.
ToScreenCoordinate(Double,Double)
ToScreenCoordinate(PointShape)
ToWorldCoordinate(Single,Single)
ToWorldCoordinate(ScreenPointF)
ZoomToMarkers(IEnumerable<Marker>)
GetScreenDistanceBetweenTwoWorldPoints(PointShape,PointShape)
GetWorldDistanceBetweenTwoScreenPoints(ScreenPointF,ScreenPointF,DistanceUnit)
N/A
N/A
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.
N/A
N/A
Gets or sets the cursor that appears when the mouse pointer is over the map control.
N/A
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. … …
N/A
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.
N/A
N/A
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.
IsDefaultJavascriptLibraryDisabled
Gets or sets whether the default javascript library is disabled or not.
N/A
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 ActiveBaseOverlay property.
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.
N/A
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.
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.
Gets an EditOverlay object, with which you can draw and edit shapes at the client.
N/A
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.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.
This property gets or sets the adornment overlay in the MapControl.
N/A
Gets an object that contains all types of map controls for configuration.
N/A
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.
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.
Gets or sets the client-side script that executes whenever a feature is drawn at the client.
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.
Gets or sets the client-side script that executes whenever you finish editing a shape at the client.
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.
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”
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”
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”
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
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
N/A
N/A
N/A
Gets or sets an extent that limits the area to which the map can be navigated within.
N/A
Gets or sets a double value that indicates the current scale of the map.
N/A
Gets and sets a custom cursor image URI for the mouse cursor to use when you select 'CursorType.Custom'.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Gets the resolution collection corresponding to the specified ZoomLevelSets applied to the map.
N/A
N/A
Gets a string value indicats the web page's root path for loading the default icons.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A