ChamplainFileTileSource

ChamplainFileTileSource — A map source that loads tile data from a file

Synopsis

                    ChamplainFileTileSource;
ChamplainFileTileSource * champlain_file_tile_source_new_full
                                                        (const gchar *id,
                                                         const gchar *name,
                                                         const gchar *license,
                                                         const gchar *license_uri,
                                                         guint min_zoom,
                                                         guint max_zoom,
                                                         guint tile_size,
                                                         ChamplainMapProjection projection,
                                                         ChamplainRenderer *renderer);
void                champlain_file_tile_source_load_map_data
                                                        (ChamplainFileTileSource *self,
                                                         const gchar *map_path);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ChamplainMapSource
               +----ChamplainTileSource
                     +----ChamplainFileTileSource

Description

This tile source loads local OpenStreetMap XML data files (*.osm).

Details

ChamplainFileTileSource

typedef struct _ChamplainFileTileSource ChamplainFileTileSource;


champlain_file_tile_source_new_full ()

ChamplainFileTileSource * champlain_file_tile_source_new_full
                                                        (const gchar *id,
                                                         const gchar *name,
                                                         const gchar *license,
                                                         const gchar *license_uri,
                                                         guint min_zoom,
                                                         guint max_zoom,
                                                         guint tile_size,
                                                         ChamplainMapProjection projection,
                                                         ChamplainRenderer *renderer);

Constructor of ChamplainFileTileSource.

id :

the map source's id

name :

the map source's name

license :

the map source's license

license_uri :

the map source's license URI

min_zoom :

the map source's minimum zoom level

max_zoom :

the map source's maximum zoom level

tile_size :

the map source's tile size (in pixels)

projection :

the map source's projection

renderer :

the ChamplainRenderer used to render tiles

Returns :

a constructed ChamplainFileTileSource object

Since 0.8


champlain_file_tile_source_load_map_data ()

void                champlain_file_tile_source_load_map_data
                                                        (ChamplainFileTileSource *self,
                                                         const gchar *map_path);

Loads the OpenStreetMap XML file at the given path.

self :

a ChamplainFileTileSource

map_path :

a path to a map data file

Since 0.8