alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MapsEvents

    Set and get the event for the maps control.

    Inheritance
    object
    ComponentBase
    MapsEvents
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Maps
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MapsEvents : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

    Constructors

    MapsEvents()

    Declaration
    public MapsEvents()

    Properties

    AnimationCompleted

    Gets or sets the event that is triggered after the animation effect completed in the maps component.

    Declaration
    [Parameter]
    public EventCallback<AnimationCompleteEventArgs> AnimationCompleted { get; set; }
    Property Value
    Type Description
    EventCallback<AnimationCompleteEventArgs>

    An EventCallback<TValue> for post-animation actions.

    Remarks

    Use this event to perform actions after animation finishes, like updating dynamic components.

    AnnotationRendering

    Gets or sets the event that is triggered before rendering of the annotation.

    Declaration
    [Parameter]
    public EventCallback<AnnotationRenderingEventArgs> AnnotationRendering { get; set; }
    Property Value
    Type Description
    EventCallback<AnnotationRenderingEventArgs>

    An EventCallback<TValue> for annotation rendering customization.

    Remarks

    Use this event to control the rendering of annotations with custom data or styles.

    BubbleRendering

    Gets or sets the event that is triggered before rendering of the bubble.

    Declaration
    [Parameter]
    public EventCallback<BubbleRenderingEventArgs> BubbleRendering { get; set; }
    Property Value
    Type Description
    EventCallback<BubbleRenderingEventArgs>

    An EventCallback<TValue> for customizing bubble rendering.

    Remarks

    Use this event to modify bubble properties such as size and color before rendering.

    DataLabelRendering

    Gets or sets the event that is triggered before rendering of the data label.

    Declaration
    [Parameter]
    public EventCallback<LabelRenderingEventArgs> DataLabelRendering { get; set; }
    Property Value
    Type Description
    EventCallback<LabelRenderingEventArgs>

    An EventCallback<TValue> for data label rendering customization.

    Remarks

    Customize the appearance of data labels before they are rendered on the map.

    LayerRendering

    Gets or sets the event that is triggered before rendering of the layer.

    Declaration
    [Parameter]
    public EventCallback<LayerRenderingEventArgs> LayerRendering { get; set; }
    Property Value
    Type Description
    EventCallback<LayerRenderingEventArgs>

    An EventCallback<TValue> for handling layer rendering customizations.

    Remarks

    Use this event to modify layer properties or styles before they are displayed.

    LegendRendering

    Gets or sets the event that is triggered before rendering of the legend.

    Declaration
    [Parameter]
    public EventCallback<LegendRenderingEventArgs> LegendRendering { get; set; }
    Property Value
    Type Description
    EventCallback<LegendRenderingEventArgs>

    An EventCallback<TValue> for customizing legend rendering.

    Remarks

    Customize the appearance or data presentation in the map legend using this event.

    Loaded

    Gets or sets the event that is triggered after maps is rendered.

    Declaration
    [Parameter]
    public EventCallback<LoadedEventArgs> Loaded { get; set; }
    Property Value
    Type Description
    EventCallback<LoadedEventArgs>

    An EventCallback<TValue> for handling actions post-rendering.

    Remarks

    Execute post-render logic like logging or UI adjustments after the map is fully displayed.

    MarkerClusterClick

    Gets or sets the event that is triggered after click on the marker cluster.

    Declaration
    [Parameter]
    public EventCallback<MarkerClusterClickEventArgs> MarkerClusterClick { get; set; }
    Property Value
    Type Description
    EventCallback<MarkerClusterClickEventArgs>

    An EventCallback<TValue> for handling marker cluster click actions.

    Remarks

    Implement custom logic to handle or navigate within clusters when they are interacted with.

    MarkerClusterMouseMove

    Gets or sets the event that is triggered after mousemove over the marker cluster.

    Declaration
    [Parameter]
    public EventCallback<MarkerClusterMoveEventArgs> MarkerClusterMouseMove { get; set; }
    Property Value
    Type Description
    EventCallback<MarkerClusterMoveEventArgs>

    An EventCallback<TValue> for handling mouse movement over marker clusters.

    Remarks

    Suitable for updating cluster-specific information dynamically as the mouse moves.

    MarkerRendering

    Gets or sets the event that is triggered before rendering of the marker.

    Declaration
    [Parameter]
    public EventCallback<MarkerRenderingEventArgs> MarkerRendering { get; set; }
    Property Value
    Type Description
    EventCallback<MarkerRenderingEventArgs>

    An EventCallback<TValue> that allows custom handling of marker rendering.

    Remarks

    This event can be used to customize the appearance or behavior of markers before they are rendered on the map.

    MouseMove

    Gets or sets the event that is triggered after the mouse pointer moves over the Maps.

    Declaration
    [Parameter]
    public EventCallback<MouseMoveEventArgs> MouseMove { get; set; }
    Property Value
    Type Description
    EventCallback<MouseMoveEventArgs>

    An EventCallback<TValue> for handling mouse movement interactions.

    Remarks

    Provides information such as Latitude, Longitude, Target, X, and Y about the mouse position over the map.

    OnBubbleClick

    Gets or sets the event that is triggered before click on the bubble.

    Declaration
    [Parameter]
    public EventCallback<BubbleClickEventArgs> OnBubbleClick { get; set; }
    Property Value
    Type Description
    EventCallback<BubbleClickEventArgs>

    An EventCallback<TValue> for handling bubble click actions.

    Remarks

    Implement actions or highlight information when bubbles are clicked.

    OnBubbleMouseMove

    Gets or sets the event that is triggered before mouse move over the bubble.

    Declaration
    [Parameter]
    public EventCallback<BubbleMoveEventArgs> OnBubbleMouseMove { get; set; }
    Property Value
    Type Description
    EventCallback<BubbleMoveEventArgs>

    An EventCallback<TValue> for handling mouse movement over bubbles.

    Remarks

    Suitable for displaying dynamic content or tooltips as the mouse moves over bubbles.

    OnClick

    Gets or sets the event that is triggered when clicking an element in maps.

    Declaration
    [Parameter]
    public EventCallback<MouseEventArgs> OnClick { get; set; }
    Property Value
    Type Description
    EventCallback<MouseEventArgs>

    An EventCallback<TValue> for managing click interactions on map elements.

    Remarks

    Respond to clicks on any map elements, triggering navigation or other interactions.

    OnDoubleClick

    Gets or sets the event that is triggered when performing the double click operation on an element in maps.

    Declaration
    [Parameter]
    public EventCallback<MouseEventArgs> OnDoubleClick { get; set; }
    Property Value
    Type Description
    EventCallback<MouseEventArgs>

    An EventCallback<TValue> for managing double-click interactions on map elements.

    Remarks

    Handle double clicks to execute specific commands or interface changes.

    OnItemHighlight

    Gets or sets the event that is triggered when mouse move on the shape in maps and before the shape gets highlighted.

    Declaration
    [Parameter]
    public EventCallback<SelectionEventArgs> OnItemHighlight { get; set; }
    Property Value
    Type Description
    EventCallback<SelectionEventArgs>

    An EventCallback<TValue> for managing shape highlight interactions.

    Remarks

    Implement custom actions or highlight configurations when shapes are hovered.

    OnItemSelect

    Gets or sets the event that is triggered when clicking the shape on maps and before the selection is applied.

    Declaration
    [Parameter]
    public EventCallback<SelectionEventArgs> OnItemSelect { get; set; }
    Property Value
    Type Description
    EventCallback<SelectionEventArgs>

    An EventCallback<TValue> for handling map item selection interactions.

    Remarks

    Control and manage selection actions, providing custom behavior or navigation.

    OnLoad

    Gets or sets the event that is triggered when the maps is started to load.

    Declaration
    [Parameter]
    public EventCallback<LoadEventArgs> OnLoad { get; set; }
    Property Value
    Type Description
    EventCallback<LoadEventArgs>

    An EventCallback<TValue> for initial setup before maps are fully loaded.

    Remarks

    This event is useful for initializing map settings or fetching necessary data for rendering.

    OnMarkerClick

    Gets or sets the event that is triggered before click of the marker.

    Declaration
    [Parameter]
    public EventCallback<MarkerClickEventArgs> OnMarkerClick { get; set; }
    Property Value
    Type Description
    EventCallback<MarkerClickEventArgs>

    An EventCallback<TValue> for handling marker click actions.

    Remarks

    Customize click behavior or handle actions like opening detailed views upon clicking a marker.

    OnMarkerDragEnd

    An event that is raised when the marker stops dragging on the map.

    Declaration
    [Parameter]
    public EventCallback<MarkerDragEndEventArgs> OnMarkerDragEnd { get; set; }
    Property Value
    Type Description
    EventCallback<MarkerDragEndEventArgs>

    An EventCallback<TValue> that allows handling of marker drag completion.

    Remarks

    Allows customization of marker features using MarkerDragEndEventArgs. This event is useful for finalizing changes after marker dragging completes.

    OnMarkerDragStart

    An event that is raised when the marker starts dragging on the map.

    Declaration
    [Parameter]
    public EventCallback<MarkerDragStartEventArgs> OnMarkerDragStart { get; set; }
    Property Value
    Type Description
    EventCallback<MarkerDragStartEventArgs>

    An EventCallback<TValue> that provides start details for the marker dragging operation.

    Remarks

    Provides MarkerDragStartEventArgs with drag start details. Use this event to prepare the UI or application state before dragging begins.

    OnMarkerMouseLeave

    Gets or sets the event that is triggered after mouse leaves from the marker.

    Declaration
    [Parameter]
    public EventCallback<MarkerMouseLeaveEventArgs> OnMarkerMouseLeave { get; set; }
    Property Value
    Type Description
    EventCallback<MarkerMouseLeaveEventArgs>

    An EventCallback<TValue> for handling marker mouse leave actions.

    Remarks

    Use this event to trigger UI updates or to hide information when the mouse exits a marker's area.

    OnMarkerMouseMove

    Gets or sets the event that is triggered after mousemove over the marker.

    Declaration
    [Parameter]
    public EventCallback<MarkerMoveEventArgs> OnMarkerMouseMove { get; set; }
    Property Value
    Type Description
    EventCallback<MarkerMoveEventArgs>

    An EventCallback<TValue> for handling mouse movement interactions.

    Remarks

    Provides information such as Latitude, Longitude, Target, X, and Y about the mouse position over the map.

    OnPan

    Gets or sets the event that is triggered before performing the panning operation.

    Declaration
    [Parameter]
    public EventCallback<MapPanEventArgs> OnPan { get; set; }
    Property Value
    Type Description
    EventCallback<MapPanEventArgs>

    An EventCallback<TValue> for managing panning preparations.

    Remarks

    Prepare or restrict panning actions during map navigation using this event.

    OnPanComplete

    Gets or sets the event that is triggered after performing the panning operation.

    Declaration
    [Parameter]
    public EventCallback<MapPanEventArgs> OnPanComplete { get; set; }
    Property Value
    Type Description
    EventCallback<MapPanEventArgs>

    An EventCallback<TValue> for handling post-panning actions.

    Remarks

    Use this event to finalize navigation changes or update related components after panning.

    OnPrint

    Gets or sets the event that is triggered before the print gets started.

    Declaration
    [Parameter]
    public EventCallback<PrintEventArgs> OnPrint { get; set; }
    Property Value
    Type Description
    EventCallback<PrintEventArgs>

    An EventCallback<TValue> for managing pre-print setups.

    Remarks

    Implement pre-print logic to configure how maps should appear on printouts.

    OnRightClick

    Gets or sets the event that is triggered when performing the right click operation on an element in maps.

    Declaration
    [Parameter]
    public EventCallback<MouseEventArgs> OnRightClick { get; set; }
    Property Value
    Type Description
    EventCallback<MouseEventArgs>

    An EventCallback<TValue> for managing right-click interactions on map elements.

    Remarks

    Use this event for context menu invocation or alternate interaction methods via right-click.

    OnZoom

    Gets or sets the event that is triggered before the zoom operations in the maps such as zoom in and zoom out.

    Declaration
    [Parameter]
    public EventCallback<MapZoomEventArgs> OnZoom { get; set; }
    Property Value
    Type Description
    EventCallback<MapZoomEventArgs>

    An EventCallback<TValue> to manage zoom interaction preparations.

    Remarks

    This event is ideal for handling zoom logic such as constraints or initial settings.

    OnZoomComplete

    Gets or sets the event that is triggered when the zooming operation is completed.

    Declaration
    [Parameter]
    public EventCallback<MapZoomEventArgs> OnZoomComplete { get; set; }
    Property Value
    Type Description
    EventCallback<MapZoomEventArgs>

    An EventCallback<TValue> that provides data about the zoom operation.

    Remarks

    This event is ideal for executing logic after a zoom action, such as updating UI elements.

    Resizing

    Gets or sets the event that is triggered after resizing the maps control.

    Declaration
    [Parameter]
    public EventCallback<ResizeEventArgs> Resizing { get; set; }
    Property Value
    Type Description
    EventCallback<ResizeEventArgs>

    An EventCallback<TValue> for managing resize-related actions.

    Remarks

    Use this event to adjust layout or interface elements when the map size changes.

    ShapeHighlighted

    Gets or sets the event that is triggered when mouse move on the shape in maps and before the shape gets highlighted.

    Declaration
    [Parameter]
    public EventCallback<ShapeSelectedEventArgs> ShapeHighlighted { get; set; }
    Property Value
    Type Description
    EventCallback<ShapeSelectedEventArgs>

    An EventCallback<TValue> for managing shape hover interactions.

    Remarks

    Use this event to update UI or highlight information about the hovered shape.

    ShapeRendering

    Gets or sets the event that is triggered before rendering of the shapes in the layer.

    Declaration
    [Parameter]
    public EventCallback<ShapeRenderingEventArgs> ShapeRendering { get; set; }
    Property Value
    Type Description
    EventCallback<ShapeRenderingEventArgs>

    An EventCallback<TValue> to customize shape rendering.

    Remarks

    Allows the modification of shape properties such as color and label before they render.

    ShapeSelected

    Gets or sets the event that is triggered when a shape is selected in maps.

    Declaration
    [Parameter]
    public EventCallback<ShapeSelectedEventArgs> ShapeSelected { get; set; }
    Property Value
    Type Description
    EventCallback<ShapeSelectedEventArgs>

    An EventCallback<TValue> for handling shape selection interactions.

    Remarks

    Implement additional logic or UI updates upon selecting a shape on the map.

    TooltipRendering

    Gets or sets the event that is triggered before the tooltip gets rendered in Maps.

    Declaration
    [Parameter]
    public EventCallback<TooltipRenderEventArgs> TooltipRendering { get; set; }
    Property Value
    Type Description
    EventCallback<TooltipRenderEventArgs>

    An EventCallback<TValue> for customizing tooltips before display.

    Remarks

    Modify tooltip content or style before it is shown to enhance user interaction.

    Methods

    OnInitializedAsync()

    OnInitializedAsync method is called when the component has received its initial parameters.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved