renderedBeforeLayer method - MapLayerPriorityBuilder class - mapview library - Dart API
renderedBeforeLayer abstract method
- String referenceLayer
Sets the priority as rendered before the first 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 before all layers and categories.
referenceLayerThe beforehand defined layer name which renders directly after the current layer.
Returns MapLayerPriorityBuilder. This class instance.
Implementation
MapLayerPriorityBuilder renderedBeforeLayer(String referenceLayer);