Pyramid.MapShape

Description

Name

struct Tinman.Pyramid.MapShape

Used by

Pyramid.MapShapes.shapes

A vector shape for generating pixel pyramid data.

Fields / Required

shape

Type

Shape

The vector shape to render.


ramp

The color ramp to use for rasterization of the vector shape. The color ramp input coordinates roughly correspond to pixels.

Fields / Optional

layer

Type

number

Default

0

The layer of the shape. Map shapes with higher layer values are rendered on top.


from

Type

number

Default

0

First bound of range of pyramid levels on which the shape shall be visible (inclusive).


to

Type

number

Default

2147483647

Second bound of range of pyramid levels on which the shape shall be visible (inclusive).


op

Type

ColorOp

Default

ColorOp.Blend

The color operation to use for combining the rasterized shape pixels with the current buffer contents.


gsd

Type

Math.Range

Default

{Math.Range: -1.7976931348623157E+308, 1.7976931348623157E+308}

A range of ground-sample-distance values that must intersect with the corresponding range of a pyramid tile in order for this shape to be visible.