renderedFirst method - MapLayerPriorityBuilder class - mapview library - Dart API
renderedFirst abstract method
Sets the priority as rendered before all layers and 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.
Returns MapLayerPriorityBuilder. This class instance.
Implementation
MapLayerPriorityBuilder renderedFirst();