Class StyleLayer
java.lang.Object
com.codename1.maps.vector.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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA full-viewport background fill.static final intFilled (and optionally stroked) polygons.static final intStroked lines.static final intText labels placed at point/centroid positions. -
Method Summary
-
Field Details
-
TYPE_BACKGROUND
public static final int TYPE_BACKGROUNDA full-viewport background fill.- See Also:
-
TYPE_FILL
public static final int TYPE_FILLFilled (and optionally stroked) polygons.- See Also:
-
TYPE_LINE
public static final int TYPE_LINEStroked lines.- See Also:
-
TYPE_SYMBOL
public static final int TYPE_SYMBOLText labels placed at point/centroid positions.- See Also:
-