![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct ChamplainMapSourceDesc; ChamplainMapSource * (*ChamplainMapSourceConstructor) (ChamplainMapSourceDesc *desc
); #define CHAMPLAIN_MAP_SOURCE_CONSTRUCTOR ChamplainMapSourceDesc * champlain_map_source_desc_new_full (gchar *id
,gchar *name
,gchar *license
,gchar *license_uri
,guint min_zoom
,guint max_zoom
,guint tile_size
,ChamplainMapProjection projection
,gchar *uri_format
,ChamplainMapSourceConstructor constructor
,gpointer data
); const gchar * champlain_map_source_desc_get_id (ChamplainMapSourceDesc *desc
); const gchar * champlain_map_source_desc_get_name (ChamplainMapSourceDesc *desc
); const gchar * champlain_map_source_desc_get_license (ChamplainMapSourceDesc *desc
); const gchar * champlain_map_source_desc_get_license_uri (ChamplainMapSourceDesc *desc
); const gchar * champlain_map_source_desc_get_uri_format (ChamplainMapSourceDesc *desc
); guint champlain_map_source_desc_get_min_zoom_level (ChamplainMapSourceDesc *desc
); guint champlain_map_source_desc_get_max_zoom_level (ChamplainMapSourceDesc *desc
); guint champlain_map_source_desc_get_tile_size (ChamplainMapSourceDesc *desc
); ChamplainMapProjection champlain_map_source_desc_get_projection (ChamplainMapSourceDesc *desc
); gpointer champlain_map_source_desc_get_data (ChamplainMapSourceDesc *desc
); ChamplainMapSourceConstructor champlain_map_source_desc_get_constructor (ChamplainMapSourceDesc *desc
);
"constructor" gpointer : Read / Write / Construct Only "data" gpointer : Read / Write / Construct Only "id" gchar* : Read / Write / Construct Only "license" gchar* : Read / Write / Construct Only "license-uri" gchar* : Read / Write / Construct Only "max-zoom-level" guint : Read / Write / Construct Only "min-zoom-level" guint : Read / Write / Construct Only "name" gchar* : Read / Write / Construct Only "projection" ChamplainMapProjection : Read / Write / Construct Only "tile-size" guint : Read / Write / Construct Only "uri-format" gchar* : Read / Write / Construct Only
struct ChamplainMapSourceDesc;
The ChamplainMapSourceDesc structure contains only private data and should be accessed using the provided API
Since 0.10
ChamplainMapSource * (*ChamplainMapSourceConstructor) (ChamplainMapSourceDesc *desc
);
A ChamplainMapSource constructor. It should return a ready to use ChamplainMapSource.
|
a ChamplainMapSourceDesc |
Returns : |
A fully constructed ChamplainMapSource ready to be used. |
Since 0.10
#define CHAMPLAIN_MAP_SOURCE_CONSTRUCTOR (f) ((ChamplainMapSourceConstructor) (f))
Conversion macro to ChamplainMapSourceConstructor.
Since 0.10
ChamplainMapSourceDesc * champlain_map_source_desc_new_full (gchar *id
,gchar *name
,gchar *license
,gchar *license_uri
,guint min_zoom
,guint max_zoom
,guint tile_size
,ChamplainMapProjection projection
,gchar *uri_format
,ChamplainMapSourceConstructor constructor
,gpointer data
);
Constructor of ChamplainMapSourceDesc which describes a ChamplainMapSource. This is returned by champlain_map_source_factory_get_registered
|
the map source's id |
|
the map source's name |
|
the map source's license |
|
the map source's license URI |
|
the map source's minimum zoom level |
|
the map source's maximum zoom level |
|
the map source's tile size (in pixels) |
|
the map source's projection |
|
the URI to fetch the tiles from, see champlain_network_tile_source_set_uri_format |
|
the map source's constructor |
|
user data passed to the constructor |
Returns : |
a constructed ChamplainMapSourceDesc object |
Since 0.10
const gchar * champlain_map_source_desc_get_id (ChamplainMapSourceDesc *desc
);
Gets map source's id.
|
a ChamplainMapSourceDesc |
Returns : |
the map source's id. |
Since 0.10
const gchar * champlain_map_source_desc_get_name (ChamplainMapSourceDesc *desc
);
Gets map source's name.
|
a ChamplainMapSourceDesc |
Returns : |
the map source's name. |
Since 0.10
const gchar * champlain_map_source_desc_get_license
(ChamplainMapSourceDesc *desc
);
Gets map source's license.
|
a ChamplainMapSourceDesc |
Returns : |
the map source's license. |
Since 0.10
const gchar * champlain_map_source_desc_get_license_uri
(ChamplainMapSourceDesc *desc
);
Gets map source's license URI.
|
a ChamplainMapSourceDesc |
Returns : |
the map source's license URI. |
Since 0.10
const gchar * champlain_map_source_desc_get_uri_format
(ChamplainMapSourceDesc *desc
);
Gets network map source's URI format.
|
a ChamplainMapSourceDesc |
Returns : |
the URI format. |
Since 0.10
guint champlain_map_source_desc_get_min_zoom_level
(ChamplainMapSourceDesc *desc
);
Gets map source's minimum zoom level.
|
a ChamplainMapSourceDesc |
Returns : |
the miminum zoom level this map source supports |
Since 0.10
guint champlain_map_source_desc_get_max_zoom_level
(ChamplainMapSourceDesc *desc
);
Gets map source's maximum zoom level.
|
a ChamplainMapSourceDesc |
Returns : |
the maximum zoom level this map source supports |
Since 0.10
guint champlain_map_source_desc_get_tile_size
(ChamplainMapSourceDesc *desc
);
Gets map source's tile size.
|
a ChamplainMapSourceDesc |
Returns : |
the tile's size (width and height) in pixels for this map source |
Since 0.10
ChamplainMapProjection champlain_map_source_desc_get_projection
(ChamplainMapSourceDesc *desc
);
Gets map source's projection.
|
a ChamplainMapSourceDesc |
Returns : |
the map source's projection. |
Since 0.10
gpointer champlain_map_source_desc_get_data (ChamplainMapSourceDesc *desc
);
Gets user data.
|
a ChamplainMapSourceDesc |
Returns : |
the user data. [transfer none] |
Since 0.10
ChamplainMapSourceConstructor champlain_map_source_desc_get_constructor
(ChamplainMapSourceDesc *desc
);
Gets the map source constructor.
|
a ChamplainMapSourceDesc |
Returns : |
the constructor. |
Since 0.10
"constructor"
property"constructor" gpointer : Read / Write / Construct Only
The map source constructor
Since 0.10
"data"
property"data" gpointer : Read / Write / Construct Only
User data passed to the constructor
Since 0.10
"id"
property"id" gchar* : Read / Write / Construct Only
The id of the map source
Default value: ""
Since 0.10
"license"
property"license" gchar* : Read / Write / Construct Only
The license of the map source
Default value: ""
Since 0.10
"license-uri"
property"license-uri" gchar* : Read / Write / Construct Only
The license's uri for more information
Default value: ""
Since 0.10
"max-zoom-level"
property"max-zoom-level" guint : Read / Write / Construct Only
The maximum zoom level
Allowed values: <= 20
Default value: 20
Since 0.10
"min-zoom-level"
property"min-zoom-level" guint : Read / Write / Construct Only
The minimum zoom level
Allowed values: <= 20
Default value: 0
Since 0.10
"name"
property"name" gchar* : Read / Write / Construct Only
The name of the map source
Default value: ""
Since 0.10
"projection"
property"projection" ChamplainMapProjection : Read / Write / Construct Only
The map projection of the map source
Default value: CHAMPLAIN_MAP_PROJECTION_MERCATOR
Since 0.10
"tile-size"
property"tile-size" guint : Read / Write / Construct Only
The tile size of the map source
Allowed values: <= G_MAXINT
Default value: 256
Since 0.10
"uri-format"
property"uri-format" gchar* : Read / Write / Construct Only
The URI format of a network map source
Default value: ""
Since 0.10