public final class StyleLayer

  1. Object
  2. StyleLayer

One rule of a MapStyle: it selects features from a named vector-tile source layer (optionally narrowed by a single attribute equality filter) within a zoom range, and describes how to paint them.

Supports the four layer types that cover a usable basemap: a single TYPE_BACKGROUND fill, TYPE_FILL polygons, TYPE_LINE strokes and TYPE_SYMBOL text labels. This is intentionally a pragmatic subset of the MapLibre GL style spec rather than a full implementation.

Fields

public static final int TYPE_BACKGROUND = 0A full-viewport background fill.
public static final int TYPE_FILL = 1Filled (and optionally stroked) polygons.
public static final int TYPE_LINE = 2Stroked lines.
public static final int TYPE_SYMBOL = 3Text labels placed at point/centroid positions.

Inherited methods

Field details

TYPE_BACKGROUND

public static final int TYPE_BACKGROUND = 0
A full-viewport background fill.

TYPE_FILL

public static final int TYPE_FILL = 1
Filled (and optionally stroked) polygons.

TYPE_LINE

public static final int TYPE_LINE = 2
Stroked lines.

TYPE_SYMBOL

public static final int TYPE_SYMBOL = 3
Text labels placed at point/centroid positions.