OptionalactionsFeature actions.
OptionalattributesOther <maplayer> attributes, such as autoRefreshMode, styleCategories, or simplifyDrawingTol.
OptionalattributeAttribute table settings.
OptionalauxiliaryAuxiliary storage settings (<auxiliaryLayer>).
OptionalblendQPainter composition mode used to draw the layer, as a QGIS blend mode number.
OptionalconditionalConditional formatting of the attribute table.
OptionalcrsLayer CRS. Assigning it does not transform geographic data.
OptionalcustomPlugin and application properties stored with the layer.
OptionaldataIDs of layers whose data this layer depends on.
OptionaldefaultDefault actions, each with key and value.
OptionaldiagramDiagram renderer.
OptionaldiagramDiagram placement settings.
OptionaldisplayDisplay expression, used for feature titles (<previewExpression>).
OptionalelevationElevation and profile settings (<elevation>).
OptionalexpressionVirtual fields, each with name, expression, type, and other attributes.
OptionalextentLayer extent in its CRS coordinate units.
OptionalfeatureBlend mode between features of this layer, as a QGIS blend mode number.
Field display and input settings. Edits do not change the data source schema.
OptionalflagsLayer flags (<flags>): Identifiable, Removable, Searchable, and Private, as 1 or 0.
OptionalformAttribute form settings.
OptionalgeometryQGIS geometry type name, such as Point.
OptionalgeometryGeometry validation and precision settings.
ReadonlyidUnique ID with at least 11 UTF-16 code units, fixed for the layer's life: tree, drawing-order, and other references use it. A layer with another ID is another layer. Shorter IDs are rejected on serialization, including when read from XML.
OptionaljoinsJoins to other layers.
OptionallabelingLabel settings.
OptionallabelsWhether labels are drawn.
OptionallayerIDs of layers whose rendering this layer depends on.
OptionallegendLegend settings (<legend>), such as type and showLabelLegend.
OptionallegendText drawn on legend symbols (<legend><text-on-symbol>), vector layers only.
OptionalmapMap tip HTML template.
OptionalmapWhether the map tip is enabled.
OptionalmaxQGIS maxScale denominator. Applied when scaleBasedVisibility is enabled.
OptionalmetadataDescriptive layer metadata.
OptionalminQGIS minScale denominator. Applied when scaleBasedVisibility is enabled.
Layer name, also written to its tree references.
OptionalnotesUser notes (<userNotes value>), often HTML.
OptionalopacityLayer opacity: 0 is transparent and 1 is opaque in QGIS.
QGIS provider identifier, such as ogr, gdal, memory, or wms.
OptionalproviderProvider character encoding.
OptionalreadWhether the layer is read-only in QGIS.
OptionalreferencedRelations to referenced layers, kept with the layer for portable styles.
OptionalreferencingRelations from referencing layers, kept with the layer for portable styles.
OptionalrendererRenderer and symbols.
Optionalrenderer3d3D renderer type and settings; nested 3D symbols stay in extension data.
OptionalscaleWhether scale-based visibility limits are enabled.
OptionalselectionSelection settings (<selection>), such as mode.
OptionalselectionLayer-specific selection color: spec (such as rgb) and components from 0 to 1, or invalid.
OptionalselectionSymbol for selected features, when the selection uses a custom symbol.
OptionalserverPublishing settings used by QGIS Server and legends.
Provider connection string or URI. Source availability is not checked and paths are not rewritten.
OptionalstoredStored expressions, each with name, expression, and tag.
OptionalstylesNamed style variants holding this layer type's settings.
OptionaltemporalTime settings (<temporal>).
OptionaltimestampData timestamp (<timestamp>) in ISO 8601, written by some providers.
Discriminant for a vector layer.
OptionalunmodeledXML of this <maplayer> that the model does not cover; see QgsUnmodeled.
Optionalwgs84Layer extent in WGS 84, as stored by QGIS.
OptionalwidgetsRelation editor widget settings by relation.
OptionalwkbQGIS WKB geometry type string.
Vector layer settings. Feature data and attribute values are not included.