inGroup abstract method

MapLayerPriorityBuilder inGroup(
  1. String group
)

Sets the group for which a priority could be defined with the next call to the functions renderedFirst|Last|BeforeLayer|AfterLayer.

When a group is set, the next defined priority is relative to the layers and layer categories inside this group. The references (i.e. 'referenceLayer' and 'referenceCategory') of the priority are only searched inside the group. Only one group or no group can be defined per layer priority and layer category priority, however, different layers can set priorities for the same group. After a priority is defined by calling one of the aforementioned functions, the current group is cleared and the builder refers again to the global layer list in the scene. Note that a group needs to exist when the built MapLayerPriority is used during a MapLayerBuilder.build or MapLayer.setPriority, otherwise the priority cannot be applied and the layer will render nothing to the group. Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

Returns MapLayerPriorityBuilder. This class instance.

Implementation

MapLayerPriorityBuilder inGroup(String group);