CartoCssPlotHelper
Helper object for preparing map data using CartoCSS styling for rendering on the map.
This class provides utility methods to populate polygons, polylines, points, and text into feature vectors and icon maps based on entity metadata and styling rules.
Key responsibilities include:
Applying CartoCSS-based metadata and layer styles
Formatting text (including multi-line handling)
Adapting styles based on device density
Supporting optional geometry simplification for performance
Used internally during map plotting to transform core entities into renderable formats compatible with the Carto Mobile SDK.
Functions
Builds a Carto PolygonGeometry from an explicit outer boundary and an optional set of hole (inner ring) loops, producing a donut / multi-hole polygon when holes are supplied and a solid polygon otherwise.
Populate's Point Geometry into feature vector map and/or icon style map This is designed for use with the new CartoCSS Styling
Populate's Polygon Geometry into feature vector map and/or icon style map This is designed for use with the new CartoCSS Styling
Populate's Polyline Geometry into feature vector map and/or icon style map This is designed for use with the new CartoCSS Styling
Populate's Text into feature vector map This is designed for use with the new CartoCSS Styling
Set the density dpi of the device so that text sizes can be preset. If this method is not called, by default device is assumed to be of high density.