# Class StyleLayer

java.lang.Object
com.codename1.maps.vector.StyleLayer

public final class StyleLayer extends Object

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.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `TYPE_BACKGROUND`
  A full-viewport background fill.
  `static final int`
  `TYPE_FILL`
  Filled (and optionally stroked) polygons.
  `static final int`
  `TYPE_LINE`
  Stroked lines.
  `static final int`
  `TYPE_SYMBOL`
  Text labels placed at point/centroid positions.

- ## Method Summary

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### TYPE_BACKGROUND

    public static final int TYPE_BACKGROUND
    A full-viewport background fill.
    See Also:
      - Constant Field Values

  - ### TYPE_FILL

    public static final int TYPE_FILL
    Filled (and optionally stroked) polygons.
    See Also:
      - Constant Field Values

  - ### TYPE_LINE

    public static final int TYPE_LINE
    Stroked lines.
    See Also:
      - Constant Field Values

  - ### TYPE_SYMBOL

    public static final int TYPE_SYMBOL
    Text labels placed at point/centroid positions.
    See Also:
      - Constant Field Values