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 Details

    • TYPE_BACKGROUND

      public static final int TYPE_BACKGROUND
      A full-viewport background fill.
      See Also:
    • TYPE_FILL

      public static final int TYPE_FILL
      Filled (and optionally stroked) polygons.
      See Also:
    • TYPE_LINE

      public static final int TYPE_LINE
      Stroked lines.
      See Also:
    • TYPE_SYMBOL

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