BaseMapElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class BaseMapElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IMapViewport
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementBaseMapElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the BaseMapElement class.
public BaseMapElement()
Fields
public static RadProperty TileOffsetProperty
public static RadProperty TileScaleProperty
Properties
Gets or sets the center of the viewport in geo coordinates.
public PointG Center { get; set; }
The center.
Implements:
Gets or sets the coordinates of the center of the viewport in pixels.
public PointL CenterPixel { get; set; }
The center pixel.
Implements:
Gets or sets a value indicating whether panning is allowed.
public bool EnablePanning { get; set; }
Gets or sets a value indicating whether zooming is allowed.
public bool EnableZooming { get; set; }
Gets or sets the input behavior that will handle the user input.
public MapInputBehavior InputBehavior { get; set; }
The input behavior.
Gets a value indicating whether an animation is active.
public bool IsAnimationActive { get; }
true if an animation is active; otherwise, false.
Gets a value indicating whether updates are suspended.
public bool IsUpdateSuspended { get; }
true if updates are suspended; otherwise, false.
Gets the layers collection of the map element.
public MapLayerCollection Layers { get; }
The layers.
Gets the number of wraparounds visible in the viewport.
public int NumberOfWraparounds { get; }
The number of wraparounds.
Implements:
Gets or sets the current pan offset of the viewport in pixels.
public SizeL PanOffset { get; set; }
The pan offset.
Implements:
Gets the providers collection of the map element.
public MapProviderCollection Providers { get; }
The providers.
Gets a collection of the selected elements.
public List<MapVisualElement> SelectedElements { get; }
The selected elements.
Gets or sets the tile offset. This property is used for animations of the viewport.
public SizeF TileOffset { get; set; }
The tile offset.
Gets or sets the tile scale. This property is used for animations of the viewport.
public SizeF TileScale { get; set; }
The tile scale.
Gets or sets the currently visible viewport in geo coordinates.
public RectangleG Viewport { get; set; }
The viewport.
Implements:
Gets or sets the viewport in pixels.
public RectangleL ViewportInPixels { get; set; }
The viewport in pixels.
Implements:
Gets or sets a value indicating whether wraparound is enabled.
public bool Wraparound { get; set; }
true if wraparound is enabled; otherwise, false.
Implements:
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Suspends updates.
public void BeginUpdate()
Brings the specified geo point into the center of the viewport.
Calculates the best zoom level that will fit the specified rectangle and centers it in the viewport.
public virtual void BringIntoView(RectangleG rectangle)
The rectangle.
Configures the graphics settings for optimal tile rendering based on the tile provider's requirements.
protected virtual void ConfigureTileProviderGraphics(Graphics graphics, IMapTileProvider tileProvider)
The GDI+ graphics object to configure.
tileProviderIMapTileProviderThe tile provider that determines the transparency rendering mode.
Resumes updates and performs an update.
public void EndUpdate()
Resumes updates and performs an update if specified by the update parameter.
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Raises the DoubleClick event.
Calls the appropriate gesture event according to the GestureType property of the event arguments.
protected override void OnGesture(GestureEventArgs args)
The event arguments.
Overrides:
Raises the KeyDown event.
protected override void OnKeyDown(KeyEventArgs e)
The key event arguments.
Overrides:
Raises the KeyPress event.
protected override void OnKeyPress(KeyPressEventArgs e)
The key press event arguments.
Overrides:
Raises the KeyUp event.
protected override void OnKeyUp(KeyEventArgs e)
The key event arguments.
Overrides:
Called when a mouse button is pressed down over the item.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when the mouse moves over the item, handling highlight and border highlight effects.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event arguments.
Overrides:
Called when a mouse button is released over the item.
protected override void OnMouseUp(MouseEventArgs e)
The mouse event arguments.
Overrides:
Raises the MouseWheel event.
protected override void OnMouseWheel(MouseEventArgs e)
The mouse event arguments.
Overrides:
Fires the PanGesture event.
protected override void OnPanGesture(PanGestureEventArgs args)
The arguments for the PanGesture event.
Overrides:
Fires the PressAndTapGesture event.
protected override void OnPressAndTapGesture(PressAndTapGestureEventArgs args)
The arguments for the PressAndTapGesture event.
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Called when a map provider is initialized.
public virtual void OnProviderInitializationComplete(IMapProvider mapProvider)
The map provider.
Called when a provider updated occurs.
public virtual void OnProviderUpdated(IMapProvider mapProvider)
The map provider that was updated.
Fires the RotateGesture event.
protected override void OnRotateGesture(RotateGestureEventArgs args)
The arguments for the RotateGesture event.
Overrides:
Called when a zoom animation finishes.
protected virtual void OnScaleAnimationFinished(object sender, AnimationStatusEventArgs e)
The sender.
eAnimationStatusEventArgsThe AnimationStatusEventArgs instance containing the event data.
Fires the event.
protected virtual void OnSelectionChanged(MapSelectionChangedEventArgs e)
The MapSelectionChangedEventArgs instance containing the event data.
Fires the TwoFingerTapGesture event.
protected override void OnTwoFingerTapGesture(GestureEventArgs args)
The arguments for the TwoFingerTapGesture event.
Overrides:
Called after the viewport changes.
protected virtual void OnViewportChanged(ViewportChangeAction action)
The change action.
Fires the event.
protected virtual void OnViewportChanged(ViewportChangedEventArgs e)
The ViewportChangedEventArgs instance containing the event data.
Fires the ZoomGesture event.
protected override void OnZoomGesture(ZoomGestureEventArgs args)
The arguments for the ZoomGesture event.
Overrides:
Performs the main painting operation for the element, rendering fill, content, and border in the correct order.
Paints the element, the providers content and the layers.
protected virtual void PaintElement(IGraphics graphics)
The graphics.
Paints the content of the layers.
Paints the content of the providers.
protected virtual void PaintProvidersContent(IGraphics graphics)
The graphics.
Paints the zoom image whild a zoom animation is ongoing.
protected virtual void PaintZoomImage(IGraphics graphics)
The graphics.
Pans the viewport with the specified delta.
protected virtual void UpdatePanOffset()
protected virtual void UpdateViewport()
Events
Occurs when the selection changed.
public event EventHandler<MapSelectionChangedEventArgs> SelectionChanged
Occurs when the viewport changed.
public event EventHandler<ViewportChangedEventArgs> ViewportChanged