layout: default title: Polygon parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Geometries

Polygon Class

A polygon contains an array of rings and a spatialReference. Each ring is represented as an array of points. The
first and last points of a ring must be the same. A polygon also has boolean-valued hasM and hasZ fields.
ArcGIS Maps SDK for JavaScript

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

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

Constructors

Polygon() Constructor

Parameterless constructor for use as a razor component

public Polygon();

Polygon(MapPath[], SpatialReference, Extent) Constructor

Creates a new polygon in code with parameters

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

Parameters

rings MapPath[]

An array of MapPath rings.

spatialReference SpatialReference

The SpatialReference of the geometry.

extent Extent

The Extent of the geometry.

Properties

Polygon.Rings Property

An array of MapPath rings.

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

Property Value

MapPath[]

Polygon.Type Property

The Geometry “type”, used internally to render.

public override string Type { get; }

Property Value

System.String

Methods

Polygon.Clone() Method

Returns a deep clone of the geometry.

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

Returns

Polygon