Constructor

ShumateVectorRenderernew

Declaration [src]

ShumateVectorRenderer*
shumate_vector_renderer_new (
  ShumateDataSource* data_source,
  const char* style_json,
  GError** error
)

Description [src]

Creates a new ShumateVectorRenderer to render vector tiles from data_source.

Parameters

data_source ShumateDataSource
 

A ShumateDataSource to provide tile image data.

 The data is owned by the caller of the function.
style_json const char*
 

A vector style.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: ShumateVectorRenderer
 

A newly constructed ShumateVectorRenderer

 The caller of the function takes ownership of the data, and is responsible for freeing it.