User Tools

Site Tools


thinkgeo.mapsuite.silverlightedition.map

This is an old revision of the document!


Table of Contents

ThinkGeo.MapSuite.SilverlightEdition.Map

<!– Class –> This class represents the main Silverlight map control.

Inheritance Hierarchy

*System.Object System.Windows.DependencyObject *System.Windows.UIElement System.Windows.FrameworkElement *System.Windows.Controls.Panel System.Windows.Controls.Canvas *ThinkGeo.MapSuite.SilverlightEdition.Map

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodMap This is the constructor of Map class.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodAddHandler RoutedEvent, Delegate, Boolean UIElement
Public MethodArrange Rect UIElement
Public MethodCaptureMouse UIElement
Public MethodCheckAccess DependencyObject
Public MethodClearValue DependencyProperty DependencyObject
Public MethodEquals Object Object
Public MethodFindName String FrameworkElement
Public MethodGetAnimationBaseValue DependencyProperty DependencyObject
Public MethodGetBindingExpression DependencyProperty FrameworkElement
Public MethodGetClosestZoomLevelIdFromResolution Double This method gets closest zoomLevel index from the resolution.
Public MethodGetClosestZoomLevelIdFromScale Double This method gets closest zoomLevel index from the scale.
Public MethodGetHashCode Object
Public MethodGetResolutionFromZoomLevelId Int32 This method gets resolution from the zoomLevel index from the ClientZoomLevelScales.
Public MethodGetScaleFromZoomLevelId Int32 This method gets scale from the zoomLevel index.
Public MethodGetType Object
Public MethodGetValue DependencyProperty DependencyObject
Public MethodInvalidateArrange UIElement
Public MethodInvalidateMeasure UIElement
Public MethodMeasure Size UIElement
Public MethodMoveTo PointShape This method moves the map to the center PointShape that you specify.
Public MethodMoveTo Point This method moves the map to the center that you specify.
Public MethodOnApplyTemplate FrameworkElement
Public MethodPan PanDirection, Int32 This method moves the map by the specified angle and the percentage of the current extent.
Public MethodPan Double, Double This method move the map by the offset of the current extent.
Public MethodPan Single, Int32 This method moves the map by the specified angle and the percentage of the current extent.
Public MethodReadLocalValue DependencyProperty DependencyObject
Public MethodRefresh This method refreshes all the overlays and map tools configed on the map.
Public MethodReleaseMouseCapture UIElement
Public MethodRemoveHandler RoutedEvent, Delegate UIElement
Public MethodSetBinding DependencyProperty, Binding FrameworkElement
Public MethodSetValue DependencyProperty, Object DependencyObject
Public MethodToScreenCoordinate PointShape This method converts a specified PointShape in world coordinates to a point shape in screen coordinates.
Public MethodToScreenCoordinate Point This method converts a specified PointShape in world coordinates to a point shape in screen coordinates.
Public MethodToScreenCoordinate Double, Double This method converts a specified X, Y world coordinates to a point shape in screen coordinates.
Public MethodToString Object
Public MethodToWorldCoordinate Double, Double This method converts a specified X, Y screen coordinates to a point shape in world coordinates.
Public MethodToWorldCoordinate Point This method converts a point shape in world coordinates from a ScreenPointF structure.
Public MethodToWorldCoordinate PointShape This method converts a PointShape in screen coordinates to a point shape in world coordinates.
Public MethodTransformToVisual UIElement UIElement
Public MethodUpdateLayout UIElement
Public MethodZoomIn This method zooms the map in to the next scale of the ClientZoomLevelScales collection.
Public MethodZoomOut This method zooms the map out to the previous scale in the ClientZoomLevelScales collection.
Public MethodZoomTo Point, Int32 This method zooms the map to the center point and the client zoomlevel number that you specify.
Public MethodZoomTo RectangleShape This method zooms the map to the extent that you specify.
Public MethodZoomTo PointShape, Int32 This method zooms the map to the center point and the client zoomlevel number that you specify.
Public MethodZoomToScale Double This method zooms the map to a specific scale.

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodArrangeOverride Size FrameworkElement(overriden)
Protected MethodFinalize Object
Protected MethodMeasureOverride Size FrameworkElement(overriden)
Protected MethodMemberwiseClone Object
Protected MethodOnClick MapClickEventArgs This method raises the Click event of the Map object.
Protected MethodOnCreateAutomationPeer UIElement
Protected MethodOnDoubleClick MapClickEventArgs This method raises the DoubleClick event of the Map object.
Protected MethodOnExtentChanged ExtentChangedEventArgs This event raises the ExtentChanged event of the Map object.
Protected MethodOnExtentChanging ExtentChangingEventArgs This method raises the ExtentChanging event of the Map object.

Public Properties

Name Return DeclaringType Summary
Public PropertyActiveBaseOverlay Overlay Gets or sets the active base overlay.
Public PropertyActualHeight Double FrameworkElement
Public PropertyActualWidth Double FrameworkElement
Public PropertyBackground Brush Panel
Public PropertyCacheMode CacheMode UIElement
Public PropertyChildren UIElementCollection Panel
Public PropertyClip Geometry UIElement
Public PropertyCurrentCenter PointShape Gets a PointShape value that indicates current center of the map.
Public PropertyCurrentExtent RectangleShape Gets or sets the current extent of the map.
Public PropertyCurrentResolution Double Gets a double value that indicates the current resolution of the map.
Public PropertyCurrentScale Double Gets a double value that indicates the current scale of the map.
Public PropertyCurrentZoomLevelId Int32 Gets a integar value that indicates current zoom level id.
Public PropertyCursor Cursor FrameworkElement
Public PropertyDataContext Object FrameworkElement
Public PropertyDesiredSize Size UIElement
Public PropertyDispatcher Dispatcher DependencyObject
Public PropertyEditOverlay EditInteractiveOverlay Gets or sets an InteractiveOverlay which maintain the algorism of Editing.
Public PropertyEffect Effect UIElement
Public PropertyExtentInteractiveOverlay ExtentInteractiveOverlay Gets or sets an InteractiveOverlay which mantains the navigation of the map.
Public PropertyHeight Double FrameworkElement
Public PropertyHorizontalAlignment HorizontalAlignment FrameworkElement
Public PropertyInteractiveOverlays GeoCollection<Overlay> Gets an collection which holds all kind of InteractiveOverlay.
Public PropertyIsHitTestVisible Boolean UIElement
Public PropertyIsItemsHost Boolean Panel
Public PropertyLanguage XmlLanguage FrameworkElement
Public PropertyLayoutPanel Grid Gets a grid panel for maintaining map tools.
Public PropertyMapTools MapTools Gets an object that contains all types of predefined map controls.
Public PropertyMapUnit GeographyUnit Gets or sets the GeographyUnit for the map.
Public PropertyMargin Thickness FrameworkElement
Public PropertyMaxExtent RectangleShape Gets the max extent of the map in current map unit.
Public PropertyMaxHeight Double FrameworkElement
Public PropertyMaxWidth Double FrameworkElement
Public PropertyMinHeight Double FrameworkElement
Public PropertyMinWidth Double FrameworkElement
Public PropertyName String FrameworkElement
Public PropertyOpacity Double UIElement
Public PropertyOpacityMask Brush UIElement
Public PropertyOverlays GeoCollection<Overlay> Gets an Overlay collection which you can add different types of overlays.
Public PropertyParent DependencyObject FrameworkElement
Public PropertyPopups GeoCollection<GeoPopup> Gets a Popup collection that holds all the popups in the map.
Public PropertyProjection Projection UIElement
Public PropertyRenderSize Size UIElement
Public PropertyRenderTransform Transform UIElement
Public PropertyRenderTransformOrigin Point UIElement
Public PropertyResources ResourceDictionary FrameworkElement
Public PropertyRestrictedExtent RectangleShape Gets or sets the restricted extent of the map.
Public PropertyStyle Style FrameworkElement
Public PropertyTag Object FrameworkElement
Public PropertyTrackOverlay TrackInteractiveOverlay Gets or sets an InteractiveOverlay which maintain the algorism of Tracking Shape.
Public PropertyTriggers TriggerCollection FrameworkElement
Public PropertyUseLayoutRounding Boolean UIElement
Public PropertyVerticalAlignment VerticalAlignment FrameworkElement
Public PropertyVisibility Visibility UIElement
Public PropertyWidth Double FrameworkElement
Public PropertyZoomLevelSet ZoomLevelSet

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary
Public EventBindingValidationError ValidationErrorEventArgs FrameworkElement
Public EventClick MapClickEventArgs This event is raised when the map is clicked.
Public EventDoubleClick MapClickEventArgs This event is raised when the map is double clicked.
Public EventExtentChanged ExtentChangedEventArgs This event is raised after map's extent changed.
Public EventExtentChanging ExtentChangingEventArgs This event is raised before current extent of map changing.
Public EventGotFocus RoutedEventArgs UIElement
Public EventKeyDown KeyEventArgs UIElement
Public EventKeyUp KeyEventArgs UIElement
Public EventLayoutUpdated EventArgs FrameworkElement
Public EventLoaded RoutedEventArgs FrameworkElement
Public EventLostFocus RoutedEventArgs UIElement
Public EventLostMouseCapture MouseEventArgs UIElement
Public EventMouseEnter MouseEventArgs UIElement
Public EventMouseLeave MouseEventArgs UIElement
Public EventMouseLeftButtonDown MouseButtonEventArgs UIElement
Public EventMouseLeftButtonUp MouseButtonEventArgs UIElement
Public EventMouseMove MouseEventArgs UIElement
Public EventMouseWheel MouseWheelEventArgs UIElement
Public EventSizeChanged SizeChangedEventArgs FrameworkElement

Public Constructors

Map()

This is the constructor of Map class.

Remarks

The map class inherits from the Canvas control, so it can be defined onto the page or be created and added to a page via code like the Canvas control itself. You also need to configure the properties of the map. The most important step is adding overlays, which generate images, shapes, and stack them over each other to form a map. The map control has many methods and events through which you can interact with it.

Parameters

Name Type Description

Go Back

Protected Constructors

Public Methods

AddHandler(RoutedEvent, Delegate, Boolean)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
routedEvent RoutedEvent<!– System.Windows.RoutedEvent –>
handler Delegate<!– System.Delegate –>
handledEventsToo Boolean<!– System.Boolean –>

<!– System.Windows.UIElement –> Go Back

Arrange(Rect)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
finalRect Rect<!– System.Windows.Rect –>

<!– System.Windows.UIElement –> Go Back

CaptureMouse()

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description

<!– System.Windows.UIElement –> Go Back

CheckAccess()

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description

<!– System.Windows.DependencyObject –> Go Back

ClearValue(DependencyProperty)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
dp DependencyProperty<!– System.Windows.DependencyProperty –>

<!– System.Windows.DependencyObject –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

FindName(String)

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description
name String<!– System.String –>

<!– System.Windows.FrameworkElement –> Go Back

GetAnimationBaseValue(DependencyProperty)

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description
dp DependencyProperty<!– System.Windows.DependencyProperty –>

<!– System.Windows.DependencyObject –> Go Back

GetBindingExpression(DependencyProperty)

Return Value

Return Type Description
BindingExpression<!– System.Windows.Data.BindingExpression –>

Parameters

Name Type Description
dp DependencyProperty<!– System.Windows.DependencyProperty –>

<!– System.Windows.FrameworkElement –> Go Back

GetClosestZoomLevelIdFromResolution(Double)

This method gets closest zoomLevel index from the resolution.

Remarks

It returns the map zoomlevel whose resolution is nearest to the ClientZoomLevelScales specified.

Resolution = world coordinate length per screen pixel.

Return Value

Return Type Description
Int32<!– System.Int32 –> The closest zoomLevel index that you defined in the ClientZoomLevelScales.

Parameters

Name Type Description
resolution Double<!– System.Double –> A double value of resolution to get the closest zoomLevel index.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

GetClosestZoomLevelIdFromScale(Double)

This method gets closest zoomLevel index from the scale.

Remarks

This method gets closest zoomLevel index from the scale.

It returns the map zoomlevel index whose scale is nearest to the ClientZoomLevelScales specified.

Return Value

Return Type Description
Int32<!– System.Int32 –> The closest zoomLevel index that you defined in the ClientZoomLevelScales.

Parameters

Name Type Description
scale Double<!– System.Double –> A double value of scale to get the closest zoomLevel index.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetResolutionFromZoomLevelId(Int32)

This method gets resolution from the zoomLevel index from the ClientZoomLevelScales.

Remarks

This method gets resolution from the zoomLevel index from the ClientZoomLevelScales.

Resolution = world coordinate length per screen pixel.

Return Value

Return Type Description
Double<!– System.Double –> The resolution of the zoomLevelId that you defined in the ClientZoomLevelScales.

Parameters

Name Type Description
zoomLevelId Int32<!– System.Int32 –> The zoom level index in the ClientZoomLevelScales collection.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

GetScaleFromZoomLevelId(Int32)

This method gets scale from the zoomLevel index.

Remarks

This method gets scale from the zoomLevel index.

Return Value

Return Type Description
Double<!– System.Double –> Returns the scale of the zoomLevelId that you defined in the ClientZoomLevelScales.

Parameters

Name Type Description
zoomLevelId Int32<!– System.Int32 –> ZoomLevel index in the ClientZoomLevelScales collection.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetValue(DependencyProperty)

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description
dp DependencyProperty<!– System.Windows.DependencyProperty –>

<!– System.Windows.DependencyObject –> Go Back

InvalidateArrange()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Windows.UIElement –> Go Back

InvalidateMeasure()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Windows.UIElement –> Go Back

Measure(Size)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
availableSize Size<!– System.Windows.Size –>

<!– System.Windows.UIElement –> Go Back

MoveTo(PointShape)

This method moves the map to the center PointShape that you specify.

Overloads

Move the map to the center PointShape that you specify.

Remarks

This method moves the map to the center PointShape that you specify. It keeps current scale.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
targetCenter PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> The target world center PointShape of the map.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

MoveTo(Point)

This method moves the map to the center that you specify.

Overloads

Move the map to the center Point that you specify.

Remarks

This method moves the map to the center that you specify. It keeps current scale.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
targetCenter Point<!– System.Windows.Point –> The target world center Point of the map.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

OnApplyTemplate()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Windows.FrameworkElement –> Go Back

Pan(PanDirection, Int32)

This method moves the map by the specified angle and the percentage of the current extent.

Overloads

Moves the map by a certain offset.

Remarks

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.Height*0.2</strong>.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
panDirection PanDirection<!– ThinkGeo.MapSuite.SilverlightCore.PanDirection –> The panning direction.
percentage Int32<!– System.Int32 –> The percentage of the current extent.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Pan(Double, Double)

This method move the map by the offset of the current extent.

Overloads

Moves the map by a certain offset in screen coordinate.

Remarks

This method move the map by the offset of the current extent.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
offsetScreenX Double<!– System.Double –> The x offset in screen coordinate that determines the panning.
offsetScreenY Double<!– System.Double –> The y offset in screen coordinate that determines the panning.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Pan(Single, Int32)

This method moves the map by the specified angle and the percentage of the current extent.

Overloads

Moves the map by a certain offset.

Remarks

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.Height*0.2</strong>.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

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.SilverlightEdition.Map –> Go Back

ReadLocalValue(DependencyProperty)

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description
dp DependencyProperty<!– System.Windows.DependencyProperty –>

<!– System.Windows.DependencyObject –> Go Back

Refresh()

This method refreshes all the overlays and map tools configed on the map.

Remarks

This method refreshes all the overlays and map tools configed on the map. Please call it when your change related properties such as overlays and styles.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ReleaseMouseCapture()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Windows.UIElement –> Go Back

RemoveHandler(RoutedEvent, Delegate)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
routedEvent RoutedEvent<!– System.Windows.RoutedEvent –>
handler Delegate<!– System.Delegate –>

<!– System.Windows.UIElement –> Go Back

SetBinding(DependencyProperty, Binding)

Return Value

Return Type Description
BindingExpressionBase<!– System.Windows.Data.BindingExpressionBase –>

Parameters

Name Type Description
dp DependencyProperty<!– System.Windows.DependencyProperty –>
binding Binding<!– System.Windows.Data.Binding –>

<!– System.Windows.FrameworkElement –> Go Back

SetValue(DependencyProperty, Object)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
dp DependencyProperty<!– System.Windows.DependencyProperty –>
value Object<!– System.Object –>

<!– System.Windows.DependencyObject –> Go Back

ToScreenCoordinate(PointShape)

This method converts a specified PointShape in world coordinates to a point shape in screen coordinates.

Overloads

This method converts a specified PointShape in world coordinates to a point shape in screen coordinates.

Remarks

This method converts the coordinates of a point shape to a point in screen coordinates.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> A screen point in pixels.

Parameters

Name Type Description
worldCoordinate PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> A point shape in world coordinates.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ToScreenCoordinate(Point)

This method converts a specified PointShape in world coordinates to a point shape in screen coordinates.

Overloads

This method converts a specified PointShape in world coordinates to a point shape in screen coordinates.

Remarks

This method converts the coordinates of a point shape to a point in screen coordinates.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> A screen point in pixels.

Parameters

Name Type Description
worldCoordinate Point<!– System.Windows.Point –> A point in world coordinates.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ToScreenCoordinate(Double, Double)

This method converts a specified X, Y world coordinates to a point shape in screen coordinates.

Overloads

This method converts a specified X, Y world coordinates to a point shape in screen coordinates.

Remarks

This method converts X, Y world coordinates to a point in screen coordinates.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> A screen point in pixels.

Parameters

Name Type Description
worldX Double<!– System.Double –> The X world coordinate.
worldY Double<!– System.Double –> The Y world coordinate.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToWorldCoordinate(Double, Double)

This method converts a specified X, Y screen coordinates to a point shape in world coordinates.

Overloads

This method converts a specified X, Y screen coordinates to a point shape in world coordinates.

Remarks

This method converts X, Y screen coordinates to a point shape in world coodinates.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> A point shape in world coordinates.

Parameters

Name Type Description
screenX Double<!– System.Double –> The X-value in pixels referenced to the screen origin.
screenY Double<!– System.Double –> The Y-value in pixels referenced to the screen origin.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ToWorldCoordinate(Point)

This method converts a point shape in world coordinates from a ScreenPointF structure.

Overloads

This method converts a point shape in world coordinates from a ScreenPointF structure.

Remarks

This method converts a screen point to a point in world coordinates.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> A point shape in world coordinates.

Parameters

Name Type Description
screenCoordinate Point<!– System.Windows.Point –> The point (in screen coordinates) to convert to world coordinates.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ToWorldCoordinate(PointShape)

This method converts a PointShape in screen coordinates to a point shape in world coordinates.

Overloads

This method converts a PointShape in screen coordinates to a point shape in world coordinates.

Remarks

This method converts a screen point to a point in world coordinates.

Return Value

Return Type Description
PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> A point shape in world coordinates.

Parameters

Name Type Description
screenCoordinate PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> The point (in screen coordinates) to convert to world coordinates.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

TransformToVisual(UIElement)

Return Value

Return Type Description
GeneralTransform<!– System.Windows.Media.GeneralTransform –>

Parameters

Name Type Description
visual UIElement<!– System.Windows.UIElement –>

<!– System.Windows.UIElement –> Go Back

UpdateLayout()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Windows.UIElement –> Go Back

ZoomIn()

This method zooms the map in to the next scale of the ClientZoomLevelScales collection.

Remarks

This method zooms the map in to the next scale of the ClientZoomLevelScales collection.

If the new scale is the last scale in the collection, it keeps current level and does not change.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ZoomOut()

This method zooms the map out to the previous scale in the ClientZoomLevelScales collection.

Remarks

This method zooms the map out to the previous scale in the ClientZoomLevelScales collection.

If the new scale is the first scale in the collection, it keeps current level and does not change.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ZoomTo(Point, Int32)

This method zooms the map to the center point and the client zoomlevel number that you specify.

Overloads

Zoom the map to the center and zoomlevel number that you specify.

Remarks

The map will be panned to the new center and zoomed to the zoomlevel number compare to the ClientZoomScales that you specify.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
targetCenter Point<!– System.Windows.Point –> The target world center point of the map.
zoomLevelId Int32<!– System.Int32 –> The target zoomlevel index that the map will zoom to.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ZoomTo(RectangleShape)

This method zooms the map to the extent that you specify.

Overloads

Zooms the map to the extent that you specify.

Remarks

The map will be panned to the center and zoomlevel of the extent that you specify.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
targetWorldExtent RectangleShape<!– ThinkGeo.MapSuite.SilverlightCore.RectangleShape –> The new world extent of the map.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ZoomTo(PointShape, Int32)

This method zooms the map to the center point and the client zoomlevel number that you specify.

Overloads

ZoomTo(PointShape, int)ZoomTo(Point, int)

Remarks

The map will be panned to the new center and zoomed to the zoomlevel number compare to the ClientZoomScales that you specify.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
targetCenter PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –> The target world center pointShape of the map.
zoomLevelId Int32<!– System.Int32 –> The target zoomlevel index that the map will zoom to.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ZoomToScale(Double)

This method zooms the map to a specific scale.

Remarks

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 Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
targetScale Double<!– System.Double –> The new scale the map will zoom to. If the specific target scale is now in the ClientZoomLevelScales, it automatically snaps to the closest level.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Protected Methods

ArrangeOverride(Size)

Return Value

Return Type Description
Size<!– System.Windows.Size –>

Parameters

Name Type Description
arrangeSize Size<!– System.Windows.Size –>

<!– System.Windows.FrameworkElement(overriden) –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MeasureOverride(Size)

Return Value

Return Type Description
Size<!– System.Windows.Size –>

Parameters

Name Type Description
constraint Size<!– System.Windows.Size –>

<!– System.Windows.FrameworkElement(overriden) –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

OnClick(MapClickEventArgs)

This method raises the Click event of the Map object.

Remarks

The <strong>OnClick</strong> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

<strong>Notes to Inheritors:</strong> When overriding <strong>OnClick</strong> in a derived class, be sure to call the base class's <strong>OnClick</strong> method so that registered delegates receive the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e MapClickEventArgs<!– ThinkGeo.MapSuite.SilverlightEdition.MapClickEventArgs –> The MapClickEventArgs that contains event data.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

OnCreateAutomationPeer()

Return Value

Return Type Description
AutomationPeer<!– System.Windows.Automation.Peers.AutomationPeer –>

Parameters

Name Type Description

<!– System.Windows.UIElement –> Go Back

OnDoubleClick(MapClickEventArgs)

This method raises the DoubleClick event of the Map object.

Remarks

The <strong>DoubleClick</strong> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

<strong>Notes to Inheritors:</strong> When overriding <strong>OnDoubleClick</strong> in a derived class, be sure to call the base class's <strong>OnDoubleClick</strong> method so that registered delegates receive the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e MapClickEventArgs<!– ThinkGeo.MapSuite.SilverlightEdition.MapClickEventArgs –> The MapClickEventArgs that contains event data.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

OnExtentChanged(ExtentChangedEventArgs)

This event raises the ExtentChanged event of the Map object.

Remarks

The <strong>OnExtentChanged</strong> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

<strong>Notes to Inheritors:</strong> When overriding <strong>OnExtentChanged</strong> in a derived class, be sure to call the base class's <strong>OnExtentChanged</strong> method so that registered delegates receive the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e ExtentChangedEventArgs<!– ThinkGeo.MapSuite.SilverlightEdition.ExtentChangedEventArgs –> The MapClickEventArgs that contains event data.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

OnExtentChanging(ExtentChangingEventArgs)

This method raises the ExtentChanging event of the Map object.

Remarks

The <strong>OnExtentChanging</strong> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

<strong>Notes to Inheritors:</strong> When overriding <strong>OnExtentChanging</strong> in a derived class, be sure to call the base class's <strong>OnExtentChanging</strong> method so that registered delegates receive the event.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e ExtentChangingEventArgs<!– ThinkGeo.MapSuite.SilverlightEdition.ExtentChangingEventArgs –> The MapClickEventArgs that contains event data.

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Public Properties

ActiveBaseOverlay

Gets or 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 <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 Value

Return Type
Overlay<!– ThinkGeo.MapSuite.SilverlightEdition.Overlay –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ActualHeight

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.FrameworkElement –> Go Back

ActualWidth

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.FrameworkElement –> Go Back

Background

Return Value

Return Type
Brush<!– System.Windows.Media.Brush –>

<!– System.Windows.Controls.Panel –> Go Back

CacheMode

Return Value

Return Type
CacheMode<!– System.Windows.Media.CacheMode –>

<!– System.Windows.UIElement –> Go Back

Children

Return Value

Return Type
UIElementCollection<!– System.Windows.Controls.UIElementCollection –>

<!– System.Windows.Controls.Panel –> Go Back

Clip

Return Value

Return Type
Geometry<!– System.Windows.Media.Geometry –>

<!– System.Windows.UIElement –> Go Back

CurrentCenter

Gets a PointShape value that indicates current center of the map.

Return Value

Return Type
PointShape<!– ThinkGeo.MapSuite.SilverlightCore.PointShape –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

CurrentExtent

Gets or sets the current extent of the map.

Return Value

Return Type
RectangleShape<!– ThinkGeo.MapSuite.SilverlightCore.RectangleShape –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

CurrentResolution

Gets a double value that indicates the current resolution of the map.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

CurrentScale

Gets a double value that indicates the current scale of the map.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

CurrentZoomLevelId

Gets a integar value that indicates current zoom level id.

Return Value

Return Type
Int32<!– System.Int32 –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Cursor

Return Value

Return Type
Cursor<!– System.Windows.Input.Cursor –>

<!– System.Windows.FrameworkElement –> Go Back

DataContext

Return Value

Return Type
Object<!– System.Object –>

<!– System.Windows.FrameworkElement –> Go Back

DesiredSize

Return Value

Return Type
Size<!– System.Windows.Size –>

<!– System.Windows.UIElement –> Go Back

Dispatcher

Return Value

Return Type
Dispatcher<!– System.Windows.Threading.Dispatcher –>

<!– System.Windows.DependencyObject –> Go Back

EditOverlay

Gets or sets an InteractiveOverlay which maintain the algorism of Editing.

Remarks

Gets or sets an InteractiveOverlay which maintain the algorism of Editing Shape.

Return Value

Return Type
EditInteractiveOverlay<!– ThinkGeo.MapSuite.SilverlightEdition.EditInteractiveOverlay –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Effect

Return Value

Return Type
Effect<!– System.Windows.Media.Effects.Effect –>

<!– System.Windows.UIElement –> Go Back

ExtentInteractiveOverlay

Gets or sets an InteractiveOverlay which mantains the navigation of the map.

Remarks

Gets or sets an InteractiveOverlay which mantains the navigation of the map such as panning, zooming etc.

Return Value

Return Type
ExtentInteractiveOverlay<!– ThinkGeo.MapSuite.SilverlightEdition.ExtentInteractiveOverlay –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Height

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.FrameworkElement –> Go Back

HorizontalAlignment

Return Value

Return Type
HorizontalAlignment<!– System.Windows.HorizontalAlignment –>

<!– System.Windows.FrameworkElement –> Go Back

InteractiveOverlays

Gets an collection which holds all kind of InteractiveOverlay.

Return Value

Return Type
GeoCollection<Overlay><!– ThinkGeo.MapSuite.SilverlightCore.GeoCollection{ThinkGeo.MapSuite.SilverlightEdition.Overlay} –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

IsHitTestVisible

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– System.Windows.UIElement –> Go Back

IsItemsHost

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– System.Windows.Controls.Panel –> Go Back

Language

Return Value

Return Type
XmlLanguage<!– System.Windows.Markup.XmlLanguage –>

<!– System.Windows.FrameworkElement –> Go Back

LayoutPanel

Gets a grid panel for maintaining map tools.

Remarks

Gets a grid panel for maintaining map tools. The tools are layouted by the column and row index in the Grid Panel.

It accepts the custom Silverlight controls as well.

Return Value

Return Type
Grid<!– System.Windows.Controls.Grid –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

MapTools

Gets an object that contains all types of predefined map controls.

Remarks

The property returns an object that contains all types of predefined map controls. Such as mouse coordinates etc.

Return Value

Return Type
MapTools<!– ThinkGeo.MapSuite.SilverlightEdition.MapTools –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

MapUnit

Gets or sets the GeographyUnit for the map.

Return Value

Return Type
GeographyUnit<!– ThinkGeo.MapSuite.SilverlightCore.GeographyUnit –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Margin

Return Value

Return Type
Thickness<!– System.Windows.Thickness –>

<!– System.Windows.FrameworkElement –> Go Back

MaxExtent

Gets the max extent of the map in current map unit.

Return Value

Return Type
RectangleShape<!– ThinkGeo.MapSuite.SilverlightCore.RectangleShape –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

MaxHeight

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.FrameworkElement –> Go Back

MaxWidth

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.FrameworkElement –> Go Back

MinHeight

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.FrameworkElement –> Go Back

MinWidth

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.FrameworkElement –> Go Back

Name

Return Value

Return Type
String<!– System.String –>

<!– System.Windows.FrameworkElement –> Go Back

Opacity

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.UIElement –> Go Back

OpacityMask

Return Value

Return Type
Brush<!– System.Windows.Media.Brush –>

<!– System.Windows.UIElement –> Go Back

Overlays

Gets an Overlay collection which you can add different types of overlays.

Remarks

You can create any type of Overlay object and add it to the Overlays collection. The overlays will be stack by its adding order.

Return Value

Return Type
GeoCollection<Overlay><!– ThinkGeo.MapSuite.SilverlightCore.GeoCollection{ThinkGeo.MapSuite.SilverlightEdition.Overlay} –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Parent

Return Value

Return Type
DependencyObject<!– System.Windows.DependencyObject –>

<!– System.Windows.FrameworkElement –> Go Back

Popups

Gets a Popup collection that holds all the popups in the map.

Return Value

Return Type
GeoCollection<GeoPopup><!– ThinkGeo.MapSuite.SilverlightCore.GeoCollection{ThinkGeo.MapSuite.SilverlightEdition.GeoPopup} –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Projection

Return Value

Return Type
Projection<!– System.Windows.Media.Projection –>

<!– System.Windows.UIElement –> Go Back

RenderSize

Return Value

Return Type
Size<!– System.Windows.Size –>

<!– System.Windows.UIElement –> Go Back

RenderTransform

Return Value

Return Type
Transform<!– System.Windows.Media.Transform –>

<!– System.Windows.UIElement –> Go Back

RenderTransformOrigin

Return Value

Return Type
Point<!– System.Windows.Point –>

<!– System.Windows.UIElement –> Go Back

Resources

Return Value

Return Type
ResourceDictionary<!– System.Windows.ResourceDictionary –>

<!– System.Windows.FrameworkElement –> Go Back

RestrictedExtent

Gets or sets the restricted extent of the map.

Return Value

Return Type
RectangleShape<!– ThinkGeo.MapSuite.SilverlightCore.RectangleShape –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Style

Return Value

Return Type
Style<!– System.Windows.Style –>

<!– System.Windows.FrameworkElement –> Go Back

Tag

Return Value

Return Type
Object<!– System.Object –>

<!– System.Windows.FrameworkElement –> Go Back

TrackOverlay

Gets or sets an InteractiveOverlay which maintain the algorism of Tracking Shape.

Remarks

Gets or sets an InteractiveOverlay which maintain the algorism of Tracking.

Return Value

Return Type
TrackInteractiveOverlay<!– ThinkGeo.MapSuite.SilverlightEdition.TrackInteractiveOverlay –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Triggers

Return Value

Return Type
TriggerCollection<!– System.Windows.TriggerCollection –>

<!– System.Windows.FrameworkElement –> Go Back

UseLayoutRounding

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– System.Windows.UIElement –> Go Back

VerticalAlignment

Return Value

Return Type
VerticalAlignment<!– System.Windows.VerticalAlignment –>

<!– System.Windows.FrameworkElement –> Go Back

Visibility

Return Value

Return Type
Visibility<!– System.Windows.Visibility –>

<!– System.Windows.UIElement –> Go Back

Width

Return Value

Return Type
Double<!– System.Double –>

<!– System.Windows.FrameworkElement –> Go Back

ZoomLevelSet

Return Value

Return Type
ZoomLevelSet<!– ThinkGeo.MapSuite.SilverlightCore.ZoomLevelSet –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

Protected Properties

Public Events

BindingValidationError

Event Arguments

Event Arguments
ValidationErrorEventArgs<!– System.Windows.Controls.ValidationErrorEventArgs –>

<!– System.Windows.FrameworkElement –> Go Back

Click

This event is raised when the map is clicked.

Remarks

This event is raised when the map is clicked. In the event argument, it contains current clicked point in world coordinates and screen coordinates.

Event Arguments

Event Arguments
MapClickEventArgs<!– ThinkGeo.MapSuite.SilverlightEdition.MapClickEventArgs –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

DoubleClick

This event is raised when the map is double clicked.

Remarks

This event is raised when the map is double clicked.

In the event argument, it contains current clicked point in world coordinates and screen coordinates.

When the click event and double click event are both hooked, only double click event will be raised.

Event Arguments

Event Arguments
MapClickEventArgs<!– ThinkGeo.MapSuite.SilverlightEdition.MapClickEventArgs –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ExtentChanged

This event is raised after map's extent changed.

Remarks

This event is raised after the map's current extent changed. In the event arguments, it contains the new extent and new scale of the map.

Event Arguments

Event Arguments
ExtentChangedEventArgs<!– ThinkGeo.MapSuite.SilverlightEdition.ExtentChangedEventArgs –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

ExtentChanging

This event is raised before current extent of map changing.

Remarks

This event is raised when the map's extent is about to change. In the event argument, it contains current extent and current scale of the map.

Event Arguments

Event Arguments
ExtentChangingEventArgs<!– ThinkGeo.MapSuite.SilverlightEdition.ExtentChangingEventArgs –>

<!– ThinkGeo.MapSuite.SilverlightEdition.Map –> Go Back

GotFocus

Event Arguments

Event Arguments
RoutedEventArgs<!– System.Windows.RoutedEventArgs –>

<!– System.Windows.UIElement –> Go Back

KeyDown

Event Arguments

Event Arguments
KeyEventArgs<!– System.Windows.Input.KeyEventArgs –>

<!– System.Windows.UIElement –> Go Back

KeyUp

Event Arguments

Event Arguments
KeyEventArgs<!– System.Windows.Input.KeyEventArgs –>

<!– System.Windows.UIElement –> Go Back

LayoutUpdated

Event Arguments

Event Arguments
EventArgs<!– System.EventArgs –>

<!– System.Windows.FrameworkElement –> Go Back

Loaded

Event Arguments

Event Arguments
RoutedEventArgs<!– System.Windows.RoutedEventArgs –>

<!– System.Windows.FrameworkElement –> Go Back

LostFocus

Event Arguments

Event Arguments
RoutedEventArgs<!– System.Windows.RoutedEventArgs –>

<!– System.Windows.UIElement –> Go Back

LostMouseCapture

Event Arguments

Event Arguments
MouseEventArgs<!– System.Windows.Input.MouseEventArgs –>

<!– System.Windows.UIElement –> Go Back

MouseEnter

Event Arguments

Event Arguments
MouseEventArgs<!– System.Windows.Input.MouseEventArgs –>

<!– System.Windows.UIElement –> Go Back

MouseLeave

Event Arguments

Event Arguments
MouseEventArgs<!– System.Windows.Input.MouseEventArgs –>

<!– System.Windows.UIElement –> Go Back

MouseLeftButtonDown

Event Arguments

Event Arguments
MouseButtonEventArgs<!– System.Windows.Input.MouseButtonEventArgs –>

<!– System.Windows.UIElement –> Go Back

MouseLeftButtonUp

Event Arguments

Event Arguments
MouseButtonEventArgs<!– System.Windows.Input.MouseButtonEventArgs –>

<!– System.Windows.UIElement –> Go Back

MouseMove

Event Arguments

Event Arguments
MouseEventArgs<!– System.Windows.Input.MouseEventArgs –>

<!– System.Windows.UIElement –> Go Back

MouseWheel

Event Arguments

Event Arguments
MouseWheelEventArgs<!– System.Windows.Input.MouseWheelEventArgs –>

<!– System.Windows.UIElement –> Go Back

SizeChanged

Event Arguments

Event Arguments
SizeChangedEventArgs<!– System.Windows.SizeChangedEventArgs –>

<!– System.Windows.FrameworkElement –> Go Back

NOTOC SilverlightEdition ThinkGeo.MapSuite.SilverlightEdition UpdateDocumentation

thinkgeo.mapsuite.silverlightedition.map.1440040134.txt.gz · Last modified: 2015/09/21 03:28 (external edit)