dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Events
ClickEvent Class
Event object for all click (single, double, immediate) and hold events.
public record ClickEvent : dymaptic.GeoBlazor.Core.Events.JsEvent, System.IEquatable<dymaptic.GeoBlazor.Core.Events.ClickEvent>
Inheritance System.Object 🡒 JsEvent 🡒 ClickEvent
Implements System.IEquatable<ClickEvent>
Constructors
ClickEvent(string, Nullable, Nullable, Point, double, double, int, int, double, DomPointerEvent, Nullable) Constructor
Event object for all click (single, double, immediate) and hold events.
public ClickEvent(string Type, System.Nullable<int> EventId, System.Nullable<bool> Cancelable, dymaptic.GeoBlazor.Core.Components.Geometries.Point MapPoint, double X, double Y, int Button, int Buttons, double Timestamp, dymaptic.GeoBlazor.Core.Events.DomPointerEvent Native, System.Nullable<dymaptic.GeoBlazor.Core.Enums.PointerType> PointerType);
Parameters
Type System.String
The event type.
EventId System.Nullable<System.Int32>
The unique Id of the event.
Cancelable System.Nullable<System.Boolean>
Whether the event can be cancelled once begun.
MapPoint Point
The point location of the click on the view in the spatial reference of the map.
The horizontal screen coordinate of the click on the view.
The vertical screen coordinate of the click on the view.
Button System.Int32
Indicates which mouse button was clicked.
Buttons System.Int32
Indicates the current mouse button state. 0 = left click (or touch), 1 = middle click, 2 = right click.
Timestamp System.Double
Time stamp (in milliseconds) at which the event was emitted.
Native DomPointerEvent
A standard DOM Pointer Event
PointerType System.Nullable<PointerType>
Indicates the pointer type.
Properties
ClickEvent.Button Property
Indicates which mouse button was clicked.
public int Button { get; init; }
Property Value
ClickEvent.Buttons Property
Indicates the current mouse button state. 0 = left click (or touch), 1 = middle click, 2 = right click.
public int Buttons { get; init; }
Property Value
ClickEvent.MapPoint Property
The point location of the click on the view in the spatial reference of the map.
public dymaptic.GeoBlazor.Core.Components.Geometries.Point MapPoint { get; init; }
Property Value
ClickEvent.X Property
The horizontal screen coordinate of the click on the view.
public double X { get; init; }
Property Value
ClickEvent.Y Property
The vertical screen coordinate of the click on the view.
public double Y { get; init; }