![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
ChamplainMapSourcePrivate; enum ChamplainMapProjection; ChamplainMapSource; gint champlain_map_source_get_min_zoom_level (ChamplainMapSource *map_source); gint champlain_map_source_get_max_zoom_level (ChamplainMapSource *map_source); guint champlain_map_source_get_tile_size (ChamplainMapSource *map_source); guint champlain_map_source_get_x (ChamplainMapSource *map_source, gint zoom_level, gdouble longitude); guint champlain_map_source_get_y (ChamplainMapSource *map_source, gint zoom_level, gdouble latitude); gdouble champlain_map_source_get_longitude (ChamplainMapSource *map_source, gint zoom_level, guint x); gdouble champlain_map_source_get_latitude (ChamplainMapSource *map_source, gint zoom_level, guint y); guint champlain_map_source_get_row_count (ChamplainMapSource *map_source, gint zoom_level); guint champlain_map_source_get_column_count (ChamplainMapSource *map_source, gint zoom_level); void champlain_map_source_get_tile (ChamplainMapSource *map_source, ChamplainView *view, ChamplainZoomLevel *level, ChamplainTile *tile); void champlain_map_source_set_name (ChamplainMapSource *map_source, const gchar *name); const gchar* champlain_map_source_get_name (ChamplainMapSource *map_source); void champlain_map_source_set_license (ChamplainMapSource *map_source, const gchar *license); const gchar* champlain_map_source_get_license (ChamplainMapSource *map_source);
"license" gchar* : Read / Write / Construct "license-uri" gchar* : Read / Write / Construct "map-projection" ChamplainMapProjection : Read / Write / Construct "max-zoom-level" guint : Read / Write / Construct "min-zoom-level" guint : Read / Write / Construct "name" gchar* : Read / Write / Construct "tile-size" guint : Read / Write / Construct
typedef enum { CHAMPLAIN_MAP_PROJECTION_MERCATOR } ChamplainMapProjection;
gint champlain_map_source_get_min_zoom_level (ChamplainMapSource *map_source);
|
|
Returns : |
gint champlain_map_source_get_max_zoom_level (ChamplainMapSource *map_source);
|
|
Returns : |
guint champlain_map_source_get_tile_size (ChamplainMapSource *map_source);
|
|
Returns : |
guint champlain_map_source_get_x (ChamplainMapSource *map_source, gint zoom_level, gdouble longitude);
|
|
|
|
|
|
Returns : |
guint champlain_map_source_get_y (ChamplainMapSource *map_source, gint zoom_level, gdouble latitude);
|
|
|
|
|
|
Returns : |
gdouble champlain_map_source_get_longitude (ChamplainMapSource *map_source, gint zoom_level, guint x);
|
|
|
|
|
|
Returns : |
gdouble champlain_map_source_get_latitude (ChamplainMapSource *map_source, gint zoom_level, guint y);
|
|
|
|
|
|
Returns : |
guint champlain_map_source_get_row_count (ChamplainMapSource *map_source, gint zoom_level);
|
|
|
|
Returns : |
guint champlain_map_source_get_column_count (ChamplainMapSource *map_source, gint zoom_level);
|
|
|
|
Returns : |
void champlain_map_source_get_tile (ChamplainMapSource *map_source, ChamplainView *view, ChamplainZoomLevel *level, ChamplainTile *tile);
|
|
|
|
|
|
|
void champlain_map_source_set_name (ChamplainMapSource *map_source, const gchar *name);
|
|
|
const gchar* champlain_map_source_get_name (ChamplainMapSource *map_source);
|
|
Returns : |
void champlain_map_source_set_license (ChamplainMapSource *map_source, const gchar *license);
|
|
|
const gchar* champlain_map_source_get_license (ChamplainMapSource *map_source);
|
|
Returns : |
"license"
property"license" gchar* : Read / Write / Construct
The usage license of the map 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
"map-projection"
property"map-projection" ChamplainMapProjection : Read / Write / Construct
The map projection of the map source
Default value: CHAMPLAIN_MAP_PROJECTION_MERCATOR
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 map source
Default value: ""
Since 0.4
"tile-size"
property"tile-size" guint : Read / Write / Construct
The tile size of the map source
Allowed values: <= 2048
Default value: 256
Since 0.4