Click or drag to resize
RadMap Class
Represents the RadMap class.
Inheritance Hierarchy

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.DataVisualization (in Telerik.Windows.Controls.DataVisualization.dll) Version: 2017.3.913.40 (2017.3.913.40)
Syntax
[ContentPropertyAttribute("Items")]
public class RadMap : ItemsControl

The RadMap type exposes the following members.

Constructors
  NameDescription
Public methodRadMap
Initializes a new instance of the RadMap class.
Top
Methods
  NameDescription
Protected methodArrangeOverride
Called to arrange and size the content.
(Overrides ControlArrangeOverride(Size).)
Protected methodClearContainerForItemOverride
Undoes the effects of the PrepareContainerForItemOverride method.
(Overrides ItemsControlClearContainerForItemOverride(DependencyObject, Object).)
Public methodDispose
Dispose all resources are used by RadMap control.
Public methodExportToImage(Stream, Boolean, BitmapEncoder)
Exports the current viewport of the map into a steam.
Public methodExportToImage(String, Boolean, BitmapEncoder)
Exports the current viewport of the map into a file with the given fileName parameter.
Public methodGetCoercedLocation
Gets a Location in longitude range(-180;180) by shifting the given location's longitude.
Public methodGetCoercedLocationRect
Gets a LocationRect whose West is in longitude range(-180;180) by shifting the given LocationRect West longitude.
Public methodCode exampleGetGeoSize
Calculates degree size according to base point and zoom.
Public methodGetLatitudeLongitudeSize
Calculates degree size according to base point and zoom.
Public methodGetPixelsDistance
Calculates horizontal pixel distance according to latitude and zoom.
Public methodGetPixelSize
Calculates pixel size according to base point and zoom.
Public methodGetPixelSizeAtZoomLevel
Gets pixel size of the specified geographic region for the given zoom level.
Public methodGetShiftedLocation
Gets a Location shifted with offset equal to the offset by which the current center is shifted outside longitude range (-180;180).
Public methodIsVisible
Detect whether given location is visible in the map control.
Public methodOnApplyTemplate
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
(Overrides FrameworkElementOnApplyTemplate.)
Protected methodOnCreateAutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
(Overrides UIElementOnCreateAutomationPeer.)
Protected methodOnInitialized
Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally.
(Overrides FrameworkElementOnInitialized(EventArgs).)
Protected methodOnMouseDoubleClick
Handles the MouseDoubleClick routed event.
(Overrides ControlOnMouseDoubleClick(MouseButtonEventArgs).)
Protected methodOnMouseWheel
The MouseWheel event handler.
(Overrides UIElementOnMouseWheel(MouseWheelEventArgs).)
Protected methodPrepareContainerForItemOverride
Prepares the specified element to display the specified item.
(Overrides ItemsControlPrepareContainerForItemOverride(DependencyObject, Object).)
Public methodRefreshCommandBar
Refresh default command bar regardless whether map provider has been changed or not.
Public methodSetView
Sets ZoomLevel and Center so the given LocationRect object is completely visible.
Top
Extension Methods
  NameDescription
Public Extension MethodChildrenOfTypeT
Gets all child elements recursively from the visual tree by given type.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodClearIfNoBindingAndSet
Clears if set.
(Defined by CommonExtensions.)
Public Extension MethodClearIfSet
Clears the property if a value has been set.
(Defined by CommonExtensions.)
Public Extension MethodDeserializePrimitives
Deserializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodEnableLayoutRounding (Defined by LayoutRoundingHelperExtensions.)
Public Extension MethodFindChildByTypeT
Finds child element of the specified type. Uses breadth-first search.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodGetAssociatedInlineUIContainer (Defined by ExtensionMethods.)
Public Extension MethodGetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodGetBaseControlItemStatus
Gets a string that communicates the visual status of a Control.
(Defined by AutomationExtensions.)
Public Extension MethodGetBoundsRelativeTo
Gets the bounds relative to the current framework element.
(Defined by ExtensionMethods.)
Public Extension MethodGetGlobalMousePosition
(Defined by WindowHost.)
Public Extension MethodGetParents
Enumerates through element's parents in the visual tree.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodGetVisualParentT
Searches up in the visual tree for parent element of the specified type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is ancestor of the current UI element.
(Defined by ExtensionMethods.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is an ancestor of the descendant.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsKeyboardFocusWithin
Determines whether keyboard focus is within the current UI element.
(Defined by KeyboardHelper.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by DependencyObjectExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by CommonExtensions.)
Public Extension MethodParentOfTypeT
Gets the parent element from the visual tree by given type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodSerializePrimitives
Serializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodSetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
(Defined by CommonExtensions.)
Public Extension MethodSetLayout
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Point)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Double, Double)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSlideInOverloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideIn(TimeSpan)Overloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOutOverloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOut(TimeSpan)Overloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan)Overloaded.
Translates the target element as requested by the parameters.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan, Action)Overloaded.
Translates the target element as requested by the parameters and executes the action request.
(Defined by CalendarAnimation.)
Top
Fields
  NameDescription
Public fieldStatic memberCenterProperty
Identifies the Center Center dependency property.
Public fieldStatic memberCommandBarVisibilityProperty
Identifies the CommandBarVisibility dependency property.
Public fieldStatic memberDistanceUnitProperty
Identifies the DistanceUnit DistanceUnit dependency property.
Public fieldStatic memberGeoBoundsNWProperty
Identifies the GeoBoundsNW GeoBoundsNW dependency property.
Public fieldStatic memberGeoBoundsProperty
Identifies the GeoBounds GeoBounds dependency property.
Public fieldStatic memberGeoBoundsSEProperty
Identifies the GeoBoundsSE GeoBoundsSE dependency property.
Public fieldStatic memberIsKeyboardNavigationEnabledProperty
Identifies the IsKeyboardNavigationEnabled dependency property.
Public fieldStatic memberIsMiniMapExpandedProperty
Identifies the IsMiniMapExpanded dependency property.
Public fieldStatic memberMapMouseClickEvent
Identifies the MapMouseClick routed event.
Public fieldStatic memberMapMouseDoubleClickEvent
Identifies the MapMouseDoubleClick routed event.
Public fieldStatic memberMaxZoomLevelProperty
Identifies the MaxZoomLevel dependency property.
Public fieldStatic memberMiniMapExpanderVisibilityProperty
Identifies the MiniMapExpanderVisibility dependency property.
Public fieldStatic memberMiniMapHeightProperty
Identifies the MiniMapHeight dependency property.
Public fieldStatic memberMiniMapWidthProperty
Identifies the MiniMapWidth dependency property.
Public fieldStatic memberMinZoomLevelProperty
Identifies the MinZoomLevel dependency property.
Public fieldStatic memberMouseClickModeProperty
Identifies the MouseClickMode dependency property.
Public fieldStatic memberMouseDoubleClickModeProperty
Identifies the MouseDoubleClickMode dependency property.
Public fieldStatic memberMouseDragModeProperty
Identifies the MouseDragMode dependency property.
Public fieldStatic memberMouseLocationIndicatorVisibilityProperty
Identifies the MouseLocationIndicatorVisibility dependency property.
Public fieldStatic memberMouseSelectionModeProperty
Identifies the MouseSelectionMode dependency property.
Public fieldStatic memberMouseShiftDragModeProperty
Identifies the MouseShiftDragMode dependency property.
Public fieldStatic memberMouseWheelModeProperty
Identifies the MouseWheelMode dependency property.
Public fieldStatic memberMouseWheelSensitivityProperty
Identifies the MouseWheelSensitivity dependency property.
Public fieldStatic memberNavigationVisibilityProperty
Identifies the NavigationVisibility dependency property.
Public fieldStatic memberPanningFinishedEvent
Identifies the PanningFinished routed event.
Public fieldStatic memberProviderProperty
Identifies the Provider Provider dependency property.
Public fieldStatic memberProvidersProperty
Identifies the Providers dependency property.
Public fieldStatic memberScaleVisibilityProperty
Identifies the ScaleVisibility dependency property.
Public fieldStatic memberSpringAnimationsModeProperty
Identifies the SpringAnimationsMode dependency property.
Public fieldStatic memberUseDefaultLayoutProperty
Identifies the UseDefaultLayout dependency property.
Public fieldStatic memberUseSpringAnimationsProperty
Identifies the UseSpringAnimations dependency property.
Public fieldStatic memberWrapAroundProperty
Identifies the WrapAround dependency property.
Public fieldStatic memberZoomBarDropDownHeightProperty
Identifies the ZoomBarDropDownHeight dependency property.
Public fieldStatic memberZoomBarPresetsVisibilityProperty
Identifies the ZoomBarPresetsVisibility dependency property.
Public fieldStatic memberZoomBarVisibilityProperty
Identifies the ZoomBarVisibility dependency property.
Public fieldStatic memberZoomingFinishedEvent
Identifies the ZoomingFinished routed event.
Public fieldStatic memberZoomLevelProperty
Identifies the ZoomLevel ZoomLevel dependency property.
Top
Properties
  NameDescription
Public propertyCenter
Gets or sets center of the map. In WrapAround mode Center's Longitude exceeds boundaries (-180; 180). To coerce it you can use the method GetCoercedLocation(Location).
Public propertyCommandBarVisibility
Gets or sets visibility of the embedded MapCommandBar UI control.
Public propertyDistanceUnit
Gets or sets distance unit.
Public propertyGeoBounds
Gets or sets map geographical bounds.
Public propertyGeoBoundsNW
Gets or sets north-west corner of the map geographical bounds.
Public propertyGeoBoundsSE
Gets or sets south-east corner of the map geographical bounds.
Public propertyGeographicalBounds
Gets bounds of the geographical region covered by map control.
Public propertyIsInitialized
Gets value which indicates whether map control have been initialized.
Public propertyIsKeyboardNavigationEnabled
Gets or sets value which indicates whether keyboard can be used to navigate over the map.
Public propertyIsMiniMapExpanded
Gets or sets value which indicates whether the embedded MiniMap UI control is expanded.
Public propertyLocationRect
Gets LocationRect of the geographical region covered by map control.
Public propertyMapZoomBar
Gets the default zoom control.
Public propertyMaxZoomLevel
Gets or sets maximum ZoomLevel.
Public propertyMiniMapExpanderVisibility
Gets or sets visibility of the embedded MiniMapExpander UI control.
Public propertyMiniMapHeight
Gets or sets height of the embedded MiniMap UI control.
Public propertyMiniMapWidth
Gets or sets width of the embedded MiniMap UI control.
Public propertyMinZoomLevel
Gets or sets minimum ZoomLevel.
Public propertyMouseClickMode
Gets or sets Mouse Click Mode property.
Public propertyMouseDoubleClickMode
Gets or sets Mouse Double Click Mode property.
Public propertyMouseDragMode
Gets or sets Mouse Drag Mode property.
Public propertyMouseLocationIndicatorVisibility
Gets or sets visibility of the embedded MouseLocationIndicator UI control.
Public propertyMouseSelectionMode
Gets or sets Mouse Selection Mode property.
Public propertyMouseShiftDragMode
Gets or sets value which specify mouse dragging behaviour when SHIFT key is pressed.
Public propertyMouseWheelMode
Gets or sets the mode of mouse wheel.
Public propertyMouseWheelSensitivity
Gets or sets the sensitivity of mouse wheel.
Public propertyNavigationVisibility
Gets or sets visibility of the embedded MapNavigation UI control (the arrows navigation).
Public propertyPinchManipulationSensitivity
Gets or sets sensitivity of the pinch manipulation on the touch screens.
Public propertyProvider
Get or sets map provider.
Public propertyProviders
Gets collection of the map image providers.
Public propertyScaleVisibility
Gets or sets visibility of the embedded MapScale UI control.
Public propertySpatialReference
Gets or sets current Spatial Reference of the Map control.
Public propertySpringAnimationsMode
Gets or sets mode of map animation.
Public propertyUseDefaultLayout
Gets or sets value which indicates whether map control should use default layout for navigation and map mode controls.
Public propertyUseSpringAnimations
Gets or sets value which indicates whether spring animations are enabled.
Public propertyWrapAround
Gets or sets a value indicating whether Map Wraparound Mode is Enabled. When in WrapAround mode - the map always covers the viewport horizontally, panning can be considered unlimited.
Public propertyZoomBarDropDownHeight
Gets or sets height of the embedded MapZoomBar drop down.
Public propertyZoomBarPresetsVisibility
Gets or sets the visibility of the MapZoomBar preset buttons that zoom to predefined levels on the map (World, State, Region, City, Hood).
Public propertyZoomBarVisibility
Gets or sets visibility of the embedded MapZoomBar UI control.
Public propertyZoomLevel
Gets or sets zoom level.
Top
Events
  NameDescription
Public eventCenterChanged
Event occurs when the Center property of the map control is changed.
Public eventCenterChanging
Event occurs when the Center property of the map control starts to change.
Public eventInitializeCompleted
Event occurs when initialization of the map control is completed.
Public eventMapMouseClick
Occurs when the user clicks on the map.
Public eventMapMouseDoubleClick
Occurs when the user does double click on the map.
Public eventPanningFinished
Event occurs when panning of the map finished (spring animation which started when map center has been changed is finished).
Public eventSelectionRectangleChanged
Event occurs when new geographical region is selected by mouse (the MouseDragBehavior is "Select" and MouseSelectionMode is "RaiseEvent").
Public eventZoomChanged
Event occurs when the Zoom property of the map control is changed.
Public eventZoomChanging
Event occurs when the ZoomLevel property of the map control starts to change.
Public eventZoomingFinished
Event occurs when zooming of the map finished (spring animation which started when map zoom level has been changed is finished).
Top
See Also