Top |
ChamplainTileCache * | cache | Read / Write |
gchar * | id | Read / Write / Construct |
gchar * | license | Read / Write / Construct |
gchar * | license-uri | Read / Write / Construct |
guint | max-zoom-level | Read / Write / Construct |
guint | min-zoom-level | Read / Write / Construct |
gchar * | name | Read / Write / Construct |
ChamplainMapProjection | projection | Read / Write / Construct |
guint | tile-size | Read / Write / Construct |
GObject ╰── GInitiallyUnowned ╰── ChamplainMapSource ╰── ChamplainTileSource ├── ChamplainFileTileSource ├── ChamplainNetworkBboxTileSource ├── ChamplainNetworkTileSource ╰── ChamplainNullTileSource
This class defines properties common to all tile sources (that is, map sources that are not caches).
ChamplainTileCache *
champlain_tile_source_get_cache (ChamplainTileSource *tile_source
);
Gets the cache used for storing tiles by this tile source.
Since: 0.6
void champlain_tile_source_set_cache (ChamplainTileSource *tile_source
,ChamplainTileCache *cache
);
Sets the map source's cache used for storing tiles.
Since: 0.6
void champlain_tile_source_set_id (ChamplainTileSource *tile_source
,const gchar *id
);
Sets the tile source's id.
Since: 0.4
void champlain_tile_source_set_name (ChamplainTileSource *tile_source
,const gchar *name
);
Sets the tile source's name.
Since: 0.4
void champlain_tile_source_set_license (ChamplainTileSource *tile_source
,const gchar *license
);
Sets the tile source's license.
Since: 0.4
void champlain_tile_source_set_license_uri (ChamplainTileSource *tile_source
,const gchar *license_uri
);
Sets the tile source's license 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.
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.
Since: 0.6
void champlain_tile_source_set_tile_size (ChamplainTileSource *tile_source
,guint tile_size
);
Sets the tile source's tile size.
Since: 0.6
void champlain_tile_source_set_projection (ChamplainTileSource *tile_source
,ChamplainMapProjection projection
);
Sets the tile source's projection.
Since: 0.4
struct ChamplainTileSource;
The ChamplainTileSource structure contains only private data and should be accessed using the provided API
Since: 0.6
“cache”
property“cache” ChamplainTileCache *
The cache used for tile storage
Owner: ChamplainTileSource
Flags: Read / Write
Since: 0.6
“id”
property“id” gchar *
The id of the tile source
Owner: ChamplainTileSource
Flags: Read / Write / Construct
Default value: ""
Since: 0.4
“license”
property“license” gchar *
The usage license of the tile source
Owner: ChamplainTileSource
Flags: Read / Write / Construct
Default value: ""
Since: 0.4
“license-uri”
property“license-uri” gchar *
The usage license's uri for more information
Owner: ChamplainTileSource
Flags: Read / Write / Construct
Default value: ""
Since: 0.4
“max-zoom-level”
property“max-zoom-level” guint
The maximum zoom level
Owner: ChamplainTileSource
Flags: Read / Write / Construct
Allowed values: <= 50
Default value: 18
Since: 0.4
“min-zoom-level”
property“min-zoom-level” guint
The minimum zoom level
Owner: ChamplainTileSource
Flags: Read / Write / Construct
Allowed values: <= 50
Default value: 0
Since: 0.4
“name”
property“name” gchar *
The name of the tile source
Owner: ChamplainTileSource
Flags: Read / Write / Construct
Default value: ""
Since: 0.4
“projection”
property“projection” ChamplainMapProjection
The map projection of the tile source
Owner: ChamplainTileSource
Flags: Read / Write / Construct
Default value: CHAMPLAIN_MAP_PROJECTION_MERCATOR
Since: 0.4
“tile-size”
property“tile-size” guint
The tile size of the tile source
Owner: ChamplainTileSource
Flags: Read / Write / Construct
Allowed values: <= 2048
Default value: 256
Since: 0.4