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!
This class represents the map control.
N/A
N/A
Initializes a new instance of the Map class with identifier, map width, and map height specified.
N/A
ToScreenCoordinate(Double,Double)
Returns a point shape in screen coordinates from the specified X, Y world coordinates.
This method converts X, Y world coordinates to a point in screen coordinates.
ToScreenCoordinate(PointShape)
Returns a screen point from a point shape in world coordinates.
This method converts the coordinates of a point shape to a point in screen coordinates.
ToWorldCoordinate(Single,Single)
Returns a point shape in world coordinates from the specified X, Y screen coordinates.
This method converts X, Y screen coordinates to a point shape in world coodinates.
ToWorldCoordinate(ScreenPointF)
Returns a point shape in world coordinates from a ScreenPointF structure.
This method converts a screen point to a point in world coordinates.
Moves the center of the map to a specified point..
N/A
Moves the center of the map to a point specified by the provided X, Y world coordinates.
This method changes the map center to a point specified by the X, Y coordinates you provide.
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.
Zooms the map in to the next zoomlevel.
N/A
N/A
ZoomToMarkers(IEnumerable<Marker>)
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.
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.
Save this object to a bitmap
N/A
Gets a bitmap image based on the current map settings with the specified width and height.
This method generates a bitmap map image with the current map settings, using the image width and height that you specify.
Load this object from a json string.
N/A
GetScreenDistanceBetweenTwoWorldPoints(PointShape,PointShape)
Gets the distance in pixels between two specified points in world coordinates.
N/A
GetWorldDistanceBetweenTwoScreenPoints(ScreenPointF,ScreenPointF,DistanceUnit)
Gets the distance in the specified distance unit from two screen points.
N/A
Moves the map by the specified direction and percentage of the current extent.
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.
Moves the map by the specified angle and the percentage of the current extent.
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.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Restores the control information from a persistent object the was saved by the SaveState method.
N/A
Does the preparation before sending the Mvc control to the provided HtmlWriter of the ViewContext.
This method notifies the Mvc control to perform any necessary prerendering steps prior to rendering content and save state.
Sends the Mvc control content to a provided HtmlTextWriter object, which wirtes the content to be rendered on the client.
When developing a custom server control, you can override this method to generate conteol for a page.
Saves any necessary information of the Mvc control, which will be used in some other places.
N/A
N/A
N/A
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
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.