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, Layer, 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, dymaptic.GeoBlazor.Core.Components.Layers.Layer Layer, 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.

Layer Layer

The layer that contains the feature/graphic.

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

Graphic

GraphicHit.Layer Property

The layer that contains the feature/graphic.

public dymaptic.GeoBlazor.Core.Components.Layers.Layer Layer { get; set; }

Property Value

Layer