VectorRenderer


Description:

[ CCode ( has_construct_function = false ) ]
public VectorRenderer (string id, string style_json) throws Error

Creates a new [class@VectorRenderer] from the given JSON style.

The stylesheet should contain a list of tile sources. Tiles will be downloaded using [class@TileDownloader]s.

See the MapLibre Style Specification for details on style_json, but be aware that libshumate does not support every feature of the specification.

Parameters:

id

an ID for the map source

style_json

a vector style

Returns:

a newly constructed [class@VectorRenderer], or null if throws is set