![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
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 +----ChamplainErrorTileSource +----ChamplainMemphisTileSource +----ChamplainNetworkTileSource
"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).
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 |
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 maximal zoom level.
|
a ChamplainTileSource |
|
the maximal 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 name 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
"tile-size"
property"tile-size" guint : Read / Write / Construct
The tile size of the tile source
Allowed values: <= 2048
Default value: 256
Since 0.4