set_sprite_sheet_data


Description:

public bool set_sprite_sheet_data (Pixbuf sprites_pixbuf, string sprites_json) throws Error

Sets the sprite sheet used by the style JSON to render icons and textures.

See https://maplibre.org/maplibre-gl-js-docs/style-spec/sprite/ for details about the spritesheet format. Most stylesheets provide these files along with the main style JSON.

Parameters:

this

a [class@VectorRenderer]

sprites_pixbuf

a [class@GdkPixbuf.Pixbuf]

sprites_json

a JSON string

Returns:

whether the sprite sheet was loaded successfully