|  |  |  | libchamplain Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct ChamplainTileSource; void champlain_tile_source_set_cache (ChamplainTileSource *tile_source,ChamplainTileCache *cache); ChamplainTileCache * champlain_tile_source_get_cache (ChamplainTileSource *tile_source); void champlain_tile_source_set_id (ChamplainTileSource *tile_source,const gchar *id); void champlain_tile_source_set_name (ChamplainTileSource *tile_source,const gchar *name); void champlain_tile_source_set_license (ChamplainTileSource *tile_source,const gchar *license); void champlain_tile_source_set_license_uri (ChamplainTileSource *tile_source,const gchar *license_uri); void champlain_tile_source_set_min_zoom_level (ChamplainTileSource *tile_source,guint zoom_level); void champlain_tile_source_set_max_zoom_level (ChamplainTileSource *tile_source,guint zoom_level); void champlain_tile_source_set_tile_size (ChamplainTileSource *tile_source,guint tile_size); void champlain_tile_source_set_projection (ChamplainTileSource *tile_source,ChamplainMapProjection projection);
  GObject
   +----GInitiallyUnowned
         +----ChamplainMapSource
               +----ChamplainTileSource
                     +----ChamplainFileTileSource
                     +----ChamplainNetworkBboxTileSource
                     +----ChamplainNetworkTileSource
                     +----ChamplainNullTileSource
"cache" ChamplainTileCache* : Read / Write "id" gchar* : Read / Write / Construct "license" gchar* : Read / Write / Construct "license-uri" gchar* : Read / Write / Construct "max-zoom-level" guint : Read / Write / Construct "min-zoom-level" guint : Read / Write / Construct "name" gchar* : Read / Write / Construct "projection" ChamplainMapProjection : Read / Write / Construct "tile-size" guint : Read / Write / Construct
This class defines properties common to all tile sources (that is, map sources that are not caches).
struct ChamplainTileSource;
The ChamplainTileSource structure contains only private data and should be accessed using the provided API
Since 0.6
void champlain_tile_source_set_cache (ChamplainTileSource *tile_source,ChamplainTileCache *cache);
Sets the map source's cache used for storing tiles.
| 
 | a ChamplainTileSource | 
| 
 | a ChamplainTileCache | 
Since 0.6
ChamplainTileCache * champlain_tile_source_get_cache    (ChamplainTileSource *tile_source);
Gets the cache used for storing tiles by this tile source.
| 
 | a ChamplainTileSource | 
| Returns : | the cache. [transfer none] | 
Since 0.6
void champlain_tile_source_set_id (ChamplainTileSource *tile_source,const gchar *id);
Sets the tile source's id.
| 
 | a ChamplainTileSource | 
| 
 | an id | 
Since 0.4
void champlain_tile_source_set_name (ChamplainTileSource *tile_source,const gchar *name);
Sets the tile source's name.
| 
 | a ChamplainTileSource | 
| 
 | a name | 
Since 0.4
void champlain_tile_source_set_license (ChamplainTileSource *tile_source,const gchar *license);
Sets the tile source's license.
| 
 | a ChamplainTileSource | 
| 
 | the licence | 
Since 0.4
void champlain_tile_source_set_license_uri (ChamplainTileSource *tile_source,const gchar *license_uri);
Sets the tile source's license URI.
| 
 | a ChamplainTileSource | 
| 
 | the licence URI | 
Since 0.4
void champlain_tile_source_set_min_zoom_level (ChamplainTileSource *tile_source,guint zoom_level);
Sets the tile source's minimal zoom level.
| 
 | a ChamplainTileSource | 
| 
 | the minimal zoom level | 
Since 0.6
void champlain_tile_source_set_max_zoom_level (ChamplainTileSource *tile_source,guint zoom_level);
Sets the tile source's maximum zoom level.
| 
 | a ChamplainTileSource | 
| 
 | the maximum zoom level | 
Since 0.6
void champlain_tile_source_set_tile_size (ChamplainTileSource *tile_source,guint tile_size);
Sets the tile source's tile size.
| 
 | a ChamplainTileSource | 
| 
 | the tile size | 
Since 0.6
void champlain_tile_source_set_projection (ChamplainTileSource *tile_source,ChamplainMapProjection projection);
Sets the tile source's projection.
| 
 | a ChamplainTileSource | 
| 
 | a ChamplainMapProjection | 
Since 0.4
"cache" property"cache" ChamplainTileCache* : Read / Write
The cache used for tile storage
Since 0.6
"id" property  "id"                       gchar*                : Read / Write / Construct
The id of the tile source
Default value: ""
Since 0.4
"license" property  "license"                  gchar*                : Read / Write / Construct
The usage license of the tile source
Default value: ""
Since 0.4
"license-uri" property  "license-uri"              gchar*                : Read / Write / Construct
The usage license's uri for more information
Default value: ""
Since 0.4
"max-zoom-level" property  "max-zoom-level"           guint                 : Read / Write / Construct
The maximum zoom level
Allowed values: <= 50
Default value: 18
Since 0.4
"min-zoom-level" property  "min-zoom-level"           guint                 : Read / Write / Construct
The minimum zoom level
Allowed values: <= 50
Default value: 0
Since 0.4
"name" property  "name"                     gchar*                : Read / Write / Construct
The name of the tile source
Default value: ""
Since 0.4
"projection" property"projection" ChamplainMapProjection : Read / Write / Construct
The map projection of the tile source
Default value: CHAMPLAIN_MAP_PROJECTION_MERCATOR
Since 0.4