Constructor

ShumateVectorRenderernew_full_from_url

Declaration [src]

ShumateVectorRenderer*
shumate_vector_renderer_new_full_from_url (
  const char* id,
  const char* name,
  const char* license,
  const char* license_uri,
  guint min_zoom,
  guint max_zoom,
  guint tile_size,
  ShumateMapProjection projection,
  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.

Parameters

id const char*
 

The map source’s id.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
name const char*
 

The map source’s name.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
license const char*
 

The map source’s license.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
license_uri const char*
 

The map source’s license URI.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
min_zoom guint
 

The map source’s minimum zoom level.

max_zoom guint
 

The map source’s maximum zoom level.

tile_size guint
 

The map source’s tile size (in pixels)

projection ShumateMapProjection
 

The map source’s projection.

url_template const char*
 

A template for the URL 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*
  No description available.
 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 ShumateVectorRenderer object.

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