VikMapSourceDefault

VikMapSourceDefault — the base class implementing most of generic features

Functions

Properties

char * copyright Read / Write
VikViewportDrawMode drawmode Read / Write
char * file-extension Read / Write / Construct Only
guint id Read / Write / Construct Only
char * label Read / Write / Construct Only
char * license Read / Write / Construct Only
char * license-url Read / Write / Construct Only
char * name Read / Write / Construct Only
double offset-x Read / Write
double offset-y Read / Write
double scale Read / Write
guint tilesize-x Read / Write
guint tilesize-y Read / Write

Object Hierarchy

    GObject
    ╰── VikMapSource
        ╰── VikMapSourceDefault
            ├── VikSlippyMapSource
            ├── VikTmsMapSource
            ╰── VikWmscMapSource

Description

The VikMapSourceDefault class is the base class implementing most of generic feature, using properties or reducing complexity of some functions.

Functions

vik_map_source_default_get_uri ()

gchar *
vik_map_source_default_get_uri (VikMapSourceDefault *self,
                                MapCoord *src);

vik_map_source_default_get_hostname ()

gchar *
vik_map_source_default_get_hostname (VikMapSourceDefault *self);

vik_map_source_default_get_download_options ()

DownloadFileOptions *
vik_map_source_default_get_download_options
                               (VikMapSourceDefault *self,
                                MapCoord *src);

Property Details

The “copyright” property

  “copyright”                char *

The copyright of the map source.

Owner: VikMapSourceDefault

Flags: Read / Write

Default value: NULL


The “drawmode” property

  “drawmode”                 VikViewportDrawMode

The mode used to draw map.

Owner: VikMapSourceDefault

Flags: Read / Write

Default value: VIK_VIEWPORT_DRAWMODE_UTM


The “file-extension” property

  “file-extension”           char *

The file extension of tile files on disk.

Owner: VikMapSourceDefault

Flags: Read / Write / Construct Only

Default value: ".png"


The “id” property

  “id”                       guint

Set the id.

Owner: VikMapSourceDefault

Flags: Read / Write / Construct Only

Default value: 0


The “label” property

  “label”                    char *

The label of the map source.

Owner: VikMapSourceDefault

Flags: Read / Write / Construct Only

Default value: "Unknown"


The “license” property

  “license”                  char *

The license of the map source.

Owner: VikMapSourceDefault

Flags: Read / Write / Construct Only

Default value: NULL


The “license-url” property

  “license-url”              char *

The URL of the license of the map source.

Owner: VikMapSourceDefault

Flags: Read / Write / Construct Only

Default value: NULL


The “name” property

  “name”                     char *

The name of the map that may be used as the file cache directory.

Owner: VikMapSourceDefault

Flags: Read / Write / Construct Only

Default value: NULL


The “offset-x” property

  “offset-x”                 double

The offset of a tile (x) in metres.

Owner: VikMapSourceDefault

Flags: Read / Write

Default value: 0


The “offset-y” property

  “offset-y”                 double

The offset of a tile (y) in metres.

Owner: VikMapSourceDefault

Flags: Read / Write

Default value: 0


The “scale” property

  “scale”                    double

Scale of a tile.

Owner: VikMapSourceDefault

Flags: Read / Write

Allowed values: [0,99999]

Default value: 1


The “tilesize-x” property

  “tilesize-x”               guint

Set the size of the tile (x).

Owner: VikMapSourceDefault

Flags: Read / Write

Allowed values: <= 65535

Default value: 0


The “tilesize-y” property

  “tilesize-y”               guint

Set the size of the tile (y).

Owner: VikMapSourceDefault

Flags: Read / Write

Allowed values: <= 65535

Default value: 0