Skip to main content Link Search Menu Expand Document (external link)

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 JS API

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