Skip to main content

shapeRing

The outline of an area shape as an open ring: a polygon's vertices, or the points around a circle. Empty for a point, a line and a circle with no radius yet.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { shapeRing } from "@mapcairn/core";

function shapeRing(shape: DrawShape): LatLng[];

Parameters​

  • shape (DrawShape)

Returns​

LatLng[]

See also​

Source: packages/core/src/draw/shape.ts:129