I'm starting to explore styles. I have layers where I want all objects on the layer to be represented by a single set of styles... a areastyle to fill the polygons (if the data is polygonal) and an alternative style to display dots if the data is points. And I want two labels on each object, one above and one below the centroid.
I understand how to do this for individual breaks in a class break style, or individual members of a value style. But what object do I create that just has a single customstyles collection that gets applied to all objects? I have not found an example where you place multiple labels on a map.
In many of your examples, you create two feature layers... one for the geometries, and one for the labels. Is that really required? Is that how you ensure that labels for one geometry don't get overwritten by a neighboring geometry that is drawn later?