Currently it is only possible to set the vertex index for labels on both polygons and rectangles. For polygons it makes much more sense to put the label or icon in a representative point or visual center inside the polygon than at a vertex.
This can be implemented with the help of https://github.com/mapbox/polylabel.
Currently it is only possible to set the vertex index for labels on both polygons and rectangles. For polygons it makes much more sense to put the label or icon in a
representative pointorvisual centerinside the polygon than at a vertex.This can be implemented with the help of https://github.com/mapbox/polylabel.
visual centerlabel / icon.polylabelto determine thevisual center.visual center.