Skip to content

API reference / @zaes/metoc / SymbolPainter

Interface: SymbolPainter<F> ​

Type Parameters ​

F ​

F

Methods ​

outline() ​

ts
outline(feature): ProjectedPosition[];

The painted outline in projected meters: a point's anchor, a line, or an area's closed ring.

Parameters ​

feature ​

F

Returns ​

ProjectedPosition[]


paint() ​

ts
paint(feature, context): Paint[];

What a graphic looks like at one resolution, in EPSG:3857 meters.

Parameters ​

feature ​

F

context ​

PaintContext

Returns ​

Paint[]

Released under the MIT License.