Retrieve a layer's XML style element.

mapLayer.style(layer, ...)

Arguments

layer

layer (or ID of the layer) whose style to access.

...

low-level parameters (such as host and auth) to be passed on to qgisremote()

Value

An object of class xml_document (and xml_node) representing the layer's style. In order to retrieve the style as a plaintext string, simply pass the optional as = 'text' argument to suppress automatic parsing.