VikMapsLayer

VikMapsLayer

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── VikLayer
        ╰── VikMapsLayer

Description

Functions

maps_layer_init ()

void
maps_layer_init ();

maps_layer_set_autodownload_default ()

void
maps_layer_set_autodownload_default (gboolean autodownload);

maps_layer_set_cache_default ()

void
maps_layer_set_cache_default (VikMapsCacheLayout layout);

vik_maps_layer_get_default_map_type ()

guint
vik_maps_layer_get_default_map_type ();

maps_layer_register_map_source ()

void
maps_layer_register_map_source (VikMapSource *map);

Register a new VikMapSource. Override existing one (equality of id).

Parameters

map

the new VikMapSource

 

vik_maps_layer_download_section ()

void
vik_maps_layer_download_section (VikMapsLayer *vml,
                                 VikViewport *vvp,
                                 VikCoord *ul,
                                 VikCoord *br,
                                 gdouble zoom);

Download a specified map area at a certain zoom level

Parameters

vml

The Map Layer

 

vvp

The Viewport that the map is on

 

ul

Upper left coordinate of the area to be downloaded

 

br

Bottom right coordinate of the area to be downloaded

 

zoom

The zoom level at which the maps are to be download

 

vik_maps_layer_get_map_type ()

guint
vik_maps_layer_get_map_type (VikMapsLayer *vml);

Returns the actual map id (rather than the internal type index value)


vik_maps_layer_set_map_type ()

void
vik_maps_layer_set_map_type (VikMapsLayer *vml,
                             guint map_type);

vik_maps_layer_get_map_label ()

gchar *
vik_maps_layer_get_map_label (VikMapsLayer *vml);

maps_layer_default_dir ()

gchar *
maps_layer_default_dir ();

vik_maps_layer_download ()

void
vik_maps_layer_download (VikMapsLayer *vml,
                         VikViewport *vvp,
                         gboolean only_new);

Types and Values

VIK_MAPS_LAYER_TYPE

#define VIK_MAPS_LAYER_TYPE            (vik_maps_layer_get_type ())

enum VikMapsCacheLayout

Members

VIK_MAPS_CACHE_LAYOUT_VIKING

   

VIK_MAPS_CACHE_LAYOUT_OSM

   

VIK_MAPS_CACHE_LAYOUT_NUM