layout: default title: PolyLine parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Geometries

PolyLine Class

A polyline contains an array of paths and spatialReference. Each path is represented as an array of points. A
polyline also has boolean-valued hasM and hasZ properties.
ArcGIS Maps SDK for JavaScript

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

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

Constructors

PolyLine() Constructor

A parameterless constructor for using as a razor component

public PolyLine();

PolyLine(MapPath[], SpatialReference, Extent) Constructor

Creates a new PolyLine in code with parameters

public PolyLine(dymaptic.GeoBlazor.Core.Objects.MapPath[] paths, dymaptic.GeoBlazor.Core.Components.Geometries.SpatialReference? spatialReference=null, dymaptic.GeoBlazor.Core.Components.Geometries.Extent? extent=null);

Parameters

paths MapPath[]

An array of MapPath paths, or line segments, that make up the polyline.

spatialReference SpatialReference

The SpatialReference of the geometry.

extent Extent

The Extent of the geometry.

Properties

PolyLine.Paths Property

An array of MapPath paths, or line segments, that make up the polyline.

public dymaptic.GeoBlazor.Core.Objects.MapPath[] Paths { get; set; }

Property Value

MapPath[]

PolyLine.Type Property

The Geometry “type”, used internally to render.

public override string Type { get; }

Property Value

System.String

Methods

PolyLine.Clone() Method

Returns a deep clone of the geometry.

public dymaptic.GeoBlazor.Core.Components.Geometries.PolyLine Clone();

Returns

PolyLine