Constructor
ShumateVectorRenderernew_from_url
Declaration [src]
ShumateVectorRenderer*
shumate_vector_renderer_new_from_url (
const char* url_template,
const char* style_json,
GError** error
)
Description [src]
Creates a new ShumateVectorRenderer
that fetches tiles from the given URL
using a ShumateTileDownloader
data source.
Equivalent to:
g_autoptr(ShumateTileDownloader) source = shumate_tile_downloader_new (url_template);
ShumateVectorRenderer *renderer = shumate_vector_renderer_new (source);
Parameters
url_template |
const char* |
A URL template to fetch tiles from. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
style_json |
const char* |
A vector style. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | ShumateVectorRenderer |
A newly constructed |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |