PolygonLabelPlacementCalculator.polylabel constructor

const PolygonLabelPlacementCalculator.polylabel({
  1. double precision,
})

Places the Polygon.label at the point furthest away from the outline, calculated using a Dart implementation of Mapbox's 'polylabel' algorithm

This is more computationally expensive than other calculators but may yield better results.

The precision may be adjusted to change the computational expense and result accuracy. See documentation on precision for more information.

Implementation

const factory PolygonLabelPlacementCalculator.polylabel({double precision}) =
    PolylabelCalculator._;