GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components.Geometries

Multipoint Class

An ordered collection of points. ArcGIS Maps SDK for JavaScript

public class Multipoint : dymaptic.GeoBlazor.Core.Components.Geometries.Geometry

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Geometry 🡒 Multipoint

Constructors

Multipoint() Constructor

Parameterless constructor for use as a Razor Component.

public Multipoint();

Multipoint(Nullable, Nullable, IReadOnlyList, SpatialReference) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public Multipoint(System.Nullable<bool> hasM=null, System.Nullable<bool> hasZ=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Geometries.Point>? points=null, dymaptic.GeoBlazor.Core.Components.SpatialReference? spatialReference=null);

Parameters

hasM System.Nullable<System.Boolean>

Indicates if the geometry has M values. ArcGIS Maps SDK for JavaScript

hasZ System.Nullable<System.Boolean>

Indicates if the geometry has z-values (elevation). ArcGIS Maps SDK for JavaScript

points System.Collections.Generic.IReadOnlyList<Point>

An array of points. ArcGIS Maps SDK for JavaScript

spatialReference SpatialReference

The spatial reference of the geometry. default SpatialReference.WGS84 // wkid: 4326 ArcGIS Maps SDK for JavaScript

Properties

Multipoint.Points Property

An array of points. ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Geometries.Point>? Points { get; }

Property Value

System.Collections.Generic.IReadOnlyList<Point>

Multipoint.Type Property

The Geometry “type”, used internally to render.

public override dymaptic.GeoBlazor.Core.Enums.GeometryType Type { get; }

Property Value

GeometryType

Methods

Multipoint.AddPoint(Point) Method

Adds a point to the Multipoint. ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.Geometries.Multipoint?> AddPoint(dymaptic.GeoBlazor.Core.Components.Geometries.Point point);

Parameters

point Point

The point to add to the multipoint. The point can either be a Point or an array of numbers representing XY coordinates.

Returns

System.Threading.Tasks.Task<Multipoint>

Multipoint.GetPoint(int) Method

Returns the point at the specified index. ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Point?> GetPoint(int index);

Parameters

index System.Int32

The index of the point in the points property.

Returns

System.Threading.Tasks.Task<Point>

Multipoint.GetPoints() Method

Asynchronously retrieve the current value of the Points property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Geometries.Point>?> GetPoints();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Point>>

Multipoint.RemovePoint(int) Method

Removes a point from the Multipoint. ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Point?> RemovePoint(int index);

Parameters

index System.Int32

The index of the point to remove.

Returns

System.Threading.Tasks.Task<Point>

Multipoint.SetPoint(int, Point) Method

Updates the point at the specified index. param point Point geometry that specifies the new location. ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.Geometries.Multipoint?> SetPoint(int index, dymaptic.GeoBlazor.Core.Components.Geometries.Point point);

Parameters

index System.Int32

The index of the point in the points property.

point Point

Point geometry that specifies the new location.

Returns

System.Threading.Tasks.Task<Multipoint>