Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "geometry/geometry"

Index

Type aliases

Buffer

Buffer: object

GeometryJSON Buffer property

Type declaration

  • unit: LengthUnit

    Buffer size unit of measurement

  • width: number

    Buffer width

Extent

Extent: [number, number, number, number]

2D extent of a geometry represented as an array in the format of [minimumX, minimumY, maximumX, maximumY]

Geometry

Geometry: Polygon | Point | LineString

GeoJSON Geometries supported by GeometryJSON

GeometryJSON

GeometryJSON: Feature & object

Extended GeoJSON used to represent map geometry. For details on GeoJSON see: https://geojson.org/

GeometryJSONProperties

GeometryJSONProperties: object

Custom GeoJSON properties used in GeometryJSON

Type declaration

  • Optional buffer?: Buffer

    Buffer properties

  • color: string

    CSS color of geometry

  • id: string

    Unique identifier

  • shape: Shape

    Shape of geometry

Variables

Const BUFFER_CLASSNAME

BUFFER_CLASSNAME: "buffer" = "buffer"

Class name added to feature "class" property to identify buffer features in user defined styles.

Const HIDDEN_CLASSNAME

HIDDEN_CLASSNAME: "hidden" = "hidden"

Class name added to feature "class" property to identify hidden features in user defined styles.

Object literals

Const DEFAULT_GEOMETRY

DEFAULT_GEOMETRY: object

Bounding Box

Bounding Box: Polygon = DEFAULT_POLYGON

Point

Point: Point = DEFAULT_POINT

Point Radius

Point Radius: Point = DEFAULT_POINT

Polygon

Polygon: Polygon = DEFAULT_POLYGON

Line

Line: object

coordinates

coordinates: number[][] = [[0, 0]]

type

type: "LineString" = "LineString"

Const DEFAULT_POINT

DEFAULT_POINT: object

coordinates

coordinates: number[] = [0, 0]

type

type: "Point" = "Point"

Const DEFAULT_POLYGON

DEFAULT_POLYGON: object

coordinates

coordinates: number[][][] = [[[0, 0],[0, 0],],]

type

type: "Polygon" = "Polygon"

Const DEFAULT_PROPERTIES

DEFAULT_PROPERTIES: object

color

color: string = ""

id

id: string = ""

shape

shape: "Polygon" | "Bounding Box" | "Point Radius" | "Point" | "Line" = POLYGON

buffer

buffer: object

unit

unit: "meters" | "kilometers" | "yards" | "feet" | "miles" | "nautical miles" = METERS

width

width: number = 0

Generated using TypeDoc