Skip to main content Link Search Menu Expand Document (external link)

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Events

ClickEvent Class

Event object for all click (single, double, immediate) and hold events.

public class 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.Events.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.

X System.Double

The horizontal screen coordinate of the click on the view.

Y System.Double

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; set; }

Property Value

System.Int32

ClickEvent.Buttons Property

Indicates the current mouse button state. 0 = left click (or touch), 1 = middle click, 2 = right click.

public int Buttons { get; set; }

Property Value

System.Int32

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; set; }

Property Value

Point

ClickEvent.X Property

The horizontal screen coordinate of the click on the view.

public double X { get; set; }

Property Value

System.Double

ClickEvent.Y Property

The vertical screen coordinate of the click on the view.

public double Y { get; set; }

Property Value

System.Double