ChamplainMapSource

ChamplainMapSource

Synopsis

                    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);

Object Hierarchy

  GObject
   +----ChamplainMapSource
         +----ChamplainNetworkMapSource

Properties

  "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

Description

Details

ChamplainMapSourcePrivate

typedef struct _ChamplainMapSourcePrivate ChamplainMapSourcePrivate;


enum ChamplainMapProjection

typedef enum
{
  CHAMPLAIN_MAP_PROJECTION_MERCATOR
} ChamplainMapProjection;


ChamplainMapSource

typedef struct _ChamplainMapSource ChamplainMapSource;


champlain_map_source_get_min_zoom_level ()

gint                champlain_map_source_get_min_zoom_level
                                                        (ChamplainMapSource *map_source);

map_source :

Returns :


champlain_map_source_get_max_zoom_level ()

gint                champlain_map_source_get_max_zoom_level
                                                        (ChamplainMapSource *map_source);

map_source :

Returns :


champlain_map_source_get_tile_size ()

guint               champlain_map_source_get_tile_size  (ChamplainMapSource *map_source);

map_source :

Returns :


champlain_map_source_get_x ()

guint               champlain_map_source_get_x          (ChamplainMapSource *map_source,
                                                         gint zoom_level,
                                                         gdouble longitude);

map_source :

zoom_level :

longitude :

Returns :


champlain_map_source_get_y ()

guint               champlain_map_source_get_y          (ChamplainMapSource *map_source,
                                                         gint zoom_level,
                                                         gdouble latitude);

map_source :

zoom_level :

latitude :

Returns :


champlain_map_source_get_longitude ()

gdouble             champlain_map_source_get_longitude  (ChamplainMapSource *map_source,
                                                         gint zoom_level,
                                                         guint x);

map_source :

zoom_level :

x :

Returns :


champlain_map_source_get_latitude ()

gdouble             champlain_map_source_get_latitude   (ChamplainMapSource *map_source,
                                                         gint zoom_level,
                                                         guint y);

map_source :

zoom_level :

y :

Returns :


champlain_map_source_get_row_count ()

guint               champlain_map_source_get_row_count  (ChamplainMapSource *map_source,
                                                         gint zoom_level);

map_source :

zoom_level :

Returns :


champlain_map_source_get_column_count ()

guint               champlain_map_source_get_column_count
                                                        (ChamplainMapSource *map_source,
                                                         gint zoom_level);

map_source :

zoom_level :

Returns :


champlain_map_source_get_tile ()

void                champlain_map_source_get_tile       (ChamplainMapSource *map_source,
                                                         ChamplainView *view,
                                                         ChamplainZoomLevel *level,
                                                         ChamplainTile *tile);

map_source :

view :

level :

tile :


champlain_map_source_set_name ()

void                champlain_map_source_set_name       (ChamplainMapSource *map_source,
                                                         const gchar *name);

map_source :

name :


champlain_map_source_get_name ()

const gchar*        champlain_map_source_get_name       (ChamplainMapSource *map_source);

map_source :

Returns :


champlain_map_source_set_license ()

void                champlain_map_source_set_license    (ChamplainMapSource *map_source,
                                                         const gchar *license);

map_source :

license :


champlain_map_source_get_license ()

const gchar*        champlain_map_source_get_license    (ChamplainMapSource *map_source);

map_source :

Returns :

Property Details

The "license" property

  "license"                  gchar*                : Read / Write / Construct

The usage license of the map source

Default value: ""

Since 0.4


The "license-uri" property

  "license-uri"              gchar*                : Read / Write / Construct

The usage license's uri for more information

Default value: ""

Since 0.4


The "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


The "max-zoom-level" property

  "max-zoom-level"           guint                 : Read / Write / Construct

The maximum zoom level

Allowed values: <= 50

Default value: 18

Since 0.4


The "min-zoom-level" property

  "min-zoom-level"           guint                 : Read / Write / Construct

The minimum zoom level

Allowed values: <= 50

Default value: 0

Since 0.4


The "name" property

  "name"                     gchar*                : Read / Write / Construct

The name of the map source

Default value: ""

Since 0.4


The "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