renderedAfterLayer abstract method

MapLayerPriorityBuilder renderedAfterLayer(
  1. String referenceLayer
)

Sets the priority as rendered after the last one from the referenceLayer and its categories.

Applies to the layer itself or the category pointed to by the preceding call to MapLayerPriorityBuilder.withCategory. Notice that the order of calls to the functions renderedFirst|Last|Before|After matters, and that after such a call the builder clears the current category and refers again to the layer itself. Further, only one priority for each layer and layer category should be set with these functions since previous priorities would be ingored. For example the priority to render layer category 'C' after layer 'L' would be overridden by the priority to render layer category 'C' before layer 'L' when building something like

withCategory("C").renderedAfterLayer("L").withCategory("C").renderedBeforeLayer("L")

The previously defined and prioritised categories can be used as reference. If the referenceLayer does not exist, then the function will set the priority as rendered after all layers and categories.

  • referenceLayer The beforehand defined layer name which renders directly before the current layer.

Returns MapLayerPriorityBuilder. This class instance.

Implementation

MapLayerPriorityBuilder renderedAfterLayer(String referenceLayer);