Class: QgsMapBoxGlStyleAbstractSource

class qgis.core.QgsMapBoxGlStyleAbstractSource

Bases: sip.wrapper

Abstract base class for MapBox GL style sources.

Warning

This is private API only, and may change in future QGIS versions

New in version 3.28.

QgsMapBoxGlStyleAbstractSource(name: str) Constructor for QgsMapBoxGlStyleAbstractSource.

QgsMapBoxGlStyleAbstractSource(QgsMapBoxGlStyleAbstractSource)

Methods

name

Returns the source's name.

setFromJson

Sets the source's state from a json map.

type

Returns the source type.

name(self) str

Returns the source’s name.

Return type

str

setFromJson(self, json: Dict[str, Any], context: QgsMapBoxGlStyleConversionContext) bool

Sets the source’s state from a json map.

Parameters
Return type

bool

type(self) Qgis.MapBoxGlStyleSourceType

Returns the source type.

Return type

Qgis.MapBoxGlStyleSourceType