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 main Silverlight map control.
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.
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.
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.
This method zooms the map out to the previous scale in the ClientZoomLevelScales collection.
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.
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.
This method zooms the map to the center point and the client zoomlevel number that you specify.
The map will be panned to the new center and zoomed to the zoomlevel number compare to the ClientZoomScales that you specify.
This method zooms the map to the center point and the client zoomlevel number that you specify.
The map will be panned to the new center and zoomed to the zoomlevel number compare to the ClientZoomScales that you specify.
This method zooms the map to the extent that you specify.
The map will be panned to the center and zoomlevel of the extent that you specify.
This method moves the map to the center PointShape that you specify.
This method moves the map to the center PointShape that you specify. It keeps current scale.
This method moves the map to the center that you specify.
This method moves the map to the center that you specify. It keeps current scale.
This method 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.Height*0.2.
This method 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.Height*0.2.
This method move the map by the offset of the current extent.
This method move the map by the offset of the current extent.
GetScaleFromZoomLevelId(Int32)
This method gets scale from the zoomLevel index.
This method gets scale from the zoomLevel index.
GetResolutionFromZoomLevelId(Int32)
This method gets resolution from the zoomLevel index from the ClientZoomLevelScales.
This method gets resolution from the zoomLevel index from the ClientZoomLevelScales.Resolution = world coordinate length per screen pixel.
GetClosestZoomLevelIdFromScale(Double)
This method gets closest zoomLevel index from the scale.
This method gets closest zoomLevel index from the scale.It returns the map zoomlevel index whose scale is nearest to the ClientZoomLevelScales specified.
GetClosestZoomLevelIdFromResolution(Double)
This method gets closest zoomLevel index from the resolution.
It returns the map zoomlevel whose resolution is nearest to the ClientZoomLevelScales specified.Resolution = world coordinate length per screen pixel.
ToWorldCoordinate(Double,Double)
This method converts a specified X, Y screen coordinates to a point shape in world coordinates.
This method converts X, Y screen coordinates to a point shape in world coodinates.
This method converts a PointShape in screen coordinates to a point shape in world coordinates.
This method converts a screen point to a point in world coordinates.
This method converts a point shape in world coordinates from a ScreenPointF structure.
This method converts a screen point to a point in world coordinates.
ToScreenCoordinate(Double,Double)
This method converts a specified X, Y world coordinates to a point shape in screen coordinates.
This method converts X, Y world coordinates to a point in screen coordinates.
ToScreenCoordinate(PointShape)
This method converts a specified PointShape in world coordinates to a point shape in screen coordinates.
This method converts the coordinates of a point shape to a point in screen coordinates.
This method converts a specified PointShape in world coordinates to a point shape in screen coordinates.
This method converts the coordinates of a point shape to a point in screen coordinates.
N/A
N/A
N/A
GetBindingExpression(DependencyProperty)
N/A
N/A
N/A
RemoveHandler(RoutedEvent,Delegate)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
ClearValue(DependencyProperty)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
YhQ=(PointShape,Int32,OverlayDrawType)
N/A
N/A
YhQ=(Point,Int32,OverlayDrawType)
N/A
N/A
ZRQ=(Single,Int32,OverlayDrawType)
N/A
N/A
ZRQ=(Double,Double,OverlayDrawType)
N/A
N/A
This method raises the Click event of the Map object.
The OnClick 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.Notes to Inheritors: When overriding OnClick in a derived class, be sure to call the base class's OnClick method so that registered delegates receive the event.
OnDoubleClick(MapClickEventArgs)
This method raises the DoubleClick event of the Map object.
The DoubleClick 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.Notes to Inheritors: When overriding OnDoubleClick in a derived class, be sure to call the base class's OnDoubleClick method so that registered delegates receive the event.
OnExtentChanging(ExtentChangingEventArgs)
This method raises the ExtentChanging event of the Map object.
The OnExtentChanging 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.Notes to Inheritors: When overriding OnExtentChanging in a derived class, be sure to call the base class's OnExtentChanging method so that registered delegates receive the event.
OnExtentChanged(ExtentChangedEventArgs)
This event raises the ExtentChanged event of the Map object.
The OnExtentChanged 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.Notes to Inheritors: When overriding OnExtentChanged in a derived class, be sure to call the base class's OnExtentChanged method so that registered delegates receive the event.
N/A
N/A
N/A
N/A
N/A
N/A
NotifyDataContextChanged(DataContextChangedEventArgs)
N/A
N/A
OnBindingValidationError(ValidationErrorEventArgs)
N/A
N/A
N/A
N/A
N/A
OnAncestorDataContextChanged(DataContextChangedEventArgs)
N/A
N/A
IsDataContextChangeRelevant(DataContextChangedEventArgs)
N/A
N/A
OnDataContextChanged(DataContextChangedEventArgs)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
SetValueInternal(DependencyProperty,Object,Boolean)
N/A
N/A
SetValueInternal(DependencyProperty,Object,Boolean,Boolean)
N/A
N/A
ClearValueInternal(DependencyProperty)
N/A
N/A
N/A
N/A
N/A
N/A
InvalidateStyleBinding(DependencyProperty,Boolean&)
N/A
N/A
SetValue(DependencyProperty,Matrix)
N/A
N/A
SetValue(DependencyProperty,Matrix3D)
N/A
N/A
SetValue(DependencyProperty,Point)
N/A
N/A
SetValue(DependencyProperty,DependencyObject)
N/A
N/A
SetValue(DependencyProperty,Int32)
N/A
N/A
SetValue(DependencyProperty,Boolean)
N/A
N/A
SetValue(DependencyProperty,Enum)
N/A
N/A
SetValue(DependencyProperty,Color)
N/A
N/A
SetValue(DependencyProperty,Double)
N/A
N/A
SetValue(DependencyProperty,GridLength)
N/A
N/A
InvalidateProperty(DependencyProperty)
N/A
N/A
GetOldValue(DependencyProperty,EffectiveValueEntry&)
N/A
N/A
GetNewValue(DependencyProperty,EffectiveValueEntry&)
N/A
N/A
SetEffectiveValue(DependencyProperty,EffectiveValueEntry&,Object)
N/A
N/A
UpdateParentInheritanceContextPropagation()
N/A
N/A
N/A
ClearAnimatedValue(DependencyProperty,Boolean,Object)
N/A
N/A
GetValueFromBuiltInStyle(DependencyProperty,Object&)
N/A
N/A
OnInheritanceContextChanged(Object,EventArgs)
N/A
N/A
AddEventListener(DependencyProperty,Delegate)
N/A
N/A
AddEventListener(DependencyProperty,Delegate,Boolean)
N/A
N/A
RemoveEventListener(DependencyProperty,Delegate)
N/A
N/A
UpdateTreeParent(IManagedPeer,IManagedPeer,Boolean,Boolean)
N/A
N/A
UpdateTreeParentHelper(IManagedPeer,IManagedPeer,Boolean)
N/A
N/A
IsPropertyLocal(CoreDependencyProperty)
N/A
N/A
OnParentEnter(IntPtr,UInt32,UInt32,UInt32,UInt32)
N/A
N/A
N/A
N/A
N/A
N/A
Gets an Overlay collection which you can add different types of overlays.
You can create any type of Overlay object and add it to the Overlays collection. The overlays will be stack by its adding order.
Gets or sets the GeographyUnit for the map.
N/A
The property returns an object that contains all types of predefined map controls. Such as mouse coordinates etc.
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.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Gets an collection which holds all kind of InteractiveOverlay.
N/A
Gets a grid panel for maintaining map tools.
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.
Gets or sets an InteractiveOverlay which mantains the navigation of the map.
Gets or sets an InteractiveOverlay which mantains the navigation of the map such as panning, zooming etc.
Gets or sets an InteractiveOverlay which maintain the algorism of Tracking Shape.
Gets or sets an InteractiveOverlay which maintain the algorism of Tracking.
Gets or sets an InteractiveOverlay which maintain the algorism of Editing.
Gets or sets an InteractiveOverlay which maintain the algorism of Editing Shape.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
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:ExtentChangingEventArgs
ExtentChanged
This event is raised after map's extent changed.
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:ExtentChangedEventArgs
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:MapClickEventArgs
DoubleClick
This event is raised when the map is double clicked.
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:MapClickEventArgs
N/A
Event Arguments:GestureEventArgs
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.