layout: default title: GraphicHit parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Events
GraphicHit Class
Object specification for the graphic hit result returned in HitTestResult of the hitTest() method.
public class GraphicHit : dymaptic.GeoBlazor.Core.Events.ViewHit,
System.IEquatable<dymaptic.GeoBlazor.Core.Events.GraphicHit>
Inheritance System.Object 🡒 ViewHit 🡒 GraphicHit
Implements System.IEquatable<GraphicHit>
Constructors
GraphicHit(Graphic, Nullable, Point) Constructor
Object specification for the graphic hit result returned in HitTestResult of the hitTest() method.
public GraphicHit(dymaptic.GeoBlazor.Core.Components.Layers.Graphic Graphic, System.Nullable<System.Guid> LayerId, dymaptic.GeoBlazor.Core.Components.Geometries.Point MapPoint);
Parameters
Graphic
Graphic
A graphic representing a feature in the view that intersects the input screen coordinates. If the graphic comes
from a layer with an applied Renderer, then the symbol property will be empty. Other properties may be empty based
on the context in which the graphic is fetched. If the result comes from a VectorTileLayer then a static graphic is
returned with two attributes: layerId and layerName. These correspond to the name and id of the style-layer in the
vector tile style.
LayerId
System.Nullable<System.Guid>
The GeoBlazor Id for the layer that the graphic belongs to.
MapPoint
Point
The point geometry in the spatial reference of the view corresponding with the input screen coordinates.
Properties
GraphicHit.Graphic Property
A graphic representing a feature in the view that intersects the input screen coordinates. If the graphic comes
from a layer with an applied Renderer, then the symbol property will be empty. Other properties may be empty based
on the context in which the graphic is fetched. If the result comes from a VectorTileLayer then a static graphic is
returned with two attributes: layerId and layerName. These correspond to the name and id of the style-layer in the
vector tile style.
public dymaptic.GeoBlazor.Core.Components.Layers.Graphic Graphic { get; set; }
Property Value
GraphicHit.LayerId Property
The GeoBlazor Id for the layer that the graphic belongs to.
public System.Nullable<System.Guid> LayerId { get; set; }