Retrieve or set a layer's feature or raster renderer in XML format.
mapLayer.renderer(layer, ...) mapLayer.setRenderer(layer, value, ...) mapLayer.renderer(layer, ...) <- value
layer | layer (or ID of the layer) whose style to access or set. |
---|---|
... | low-level parameters (such as |
value | XML specification of the renderer to set for the given layer
(can be an |
An object of class xml_document
(and xml_node
) representing the
current renderer of the given layer. In order to retrieve the renderer as
a plaintext string, simply pass the optional as = 'text'
argument to
suppress automatic parsing.