Class MapsEvents
Set and get the event for the maps control.
Inheritance
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsEvents : ComponentBase
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
public EventCallback<AnimationCompleteEventArgs> AnimationCompleted { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<AnimationCompleteEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<AnnotationRenderingEventArgs> AnnotationRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<AnnotationRenderingEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<BubbleRenderingEventArgs> BubbleRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<BubbleRenderingEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<LabelRenderingEventArgs> DataLabelRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<LabelRenderingEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<LayerRenderingEventArgs> LayerRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<LayerRenderingEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<LegendRenderingEventArgs> LegendRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<LegendRenderingEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<LoadedEventArgs> Loaded { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<LoadedEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MarkerClusterClickEventArgs> MarkerClusterClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MarkerClusterClickEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MarkerClusterMoveEventArgs> MarkerClusterMouseMove { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MarkerClusterMoveEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MarkerRenderingEventArgs> MarkerRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MarkerRenderingEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MouseMoveEventArgs> MouseMove { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MouseMoveEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<BubbleClickEventArgs> OnBubbleClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<BubbleClickEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<BubbleMoveEventArgs> OnBubbleMouseMove { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<BubbleMoveEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MouseEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MouseEventArgs> OnDoubleClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MouseEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<SelectionEventArgs> OnItemHighlight { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<SelectionEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<SelectionEventArgs> OnItemSelect { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<SelectionEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<LoadEventArgs> OnLoad { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<LoadEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MarkerClickEventArgs> OnMarkerClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MarkerClickEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MarkerDragEndEventArgs> OnMarkerDragEnd { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MarkerDragEndEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MarkerDragStartEventArgs> OnMarkerDragStart { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MarkerDragStartEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MarkerMouseLeaveEventArgs> OnMarkerMouseLeave { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MarkerMouseLeaveEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MarkerMoveEventArgs> OnMarkerMouseMove { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MarkerMoveEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MapPanEventArgs> OnPan { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MapPanEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MapPanEventArgs> OnPanComplete { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MapPanEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<PrintEventArgs> OnPrint { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<PrintEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MouseEventArgs> OnRightClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MouseEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MapZoomEventArgs> OnZoom { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MapZoomEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<MapZoomEventArgs> OnZoomComplete { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MapZoomEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<ResizeEventArgs> Resizing { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizeEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<ShapeSelectedEventArgs> ShapeHighlighted { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ShapeSelectedEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<ShapeRenderingEventArgs> ShapeRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ShapeRenderingEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<ShapeSelectedEventArgs> ShapeSelected { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ShapeSelectedEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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
public EventCallback<TooltipRenderEventArgs> TooltipRendering { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<TooltipRenderEventArgs> | An Microsoft.AspNetCore.Components.EventCallback<> 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 |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |