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 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 dymaptic.GeoBlazor.Core.Components.Geometries.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<double>? 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<System.Double>

An array of points.
ArcGIS Maps SDK for JavaScript

spatialReference dymaptic.GeoBlazor.Core.Components.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<double>? Points { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<System.Double>

Multipoint.Type Property

The Geometry “type”, used internally to render.

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

Property Value

dymaptic.GeoBlazor.Core.Enums.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 dymaptic.GeoBlazor.Core.Components.Geometries.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.AddToPoints(double[]) Method

Asynchronously adds elements to the Points property.

public System.Threading.Tasks.Task AddToPoints(params double[] values);

Parameters

values System.Double[]

The elements to add.

Returns

System.Threading.Tasks.Task

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<dymaptic.GeoBlazor.Core.Components.Geometries.Point>

Multipoint.GetPoints() Method

Asynchronously retrieve the current value of the Points property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<double>?> GetPoints();

Returns

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

Multipoint.RemoveFromPoints(double[]) Method

Asynchronously remove an element from the Points property.

public System.Threading.Tasks.Task RemoveFromPoints(params double[] values);

Parameters

values System.Double[]

The elements to remove.

Returns

System.Threading.Tasks.Task

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<dymaptic.GeoBlazor.Core.Components.Geometries.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 dymaptic.GeoBlazor.Core.Components.Geometries.Point

Point geometry that specifies the new location.

Returns

System.Threading.Tasks.Task<Multipoint>

Multipoint.SetPoints(IReadOnlyList) Method

Asynchronously set the value of the Points property after render.

public System.Threading.Tasks.Task SetPoints(System.Collections.Generic.IReadOnlyList<double>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<System.Double>

The value to set.

Returns

System.Threading.Tasks.Task