Top | ![]() |
![]() |
![]() |
![]() |
The VikMapSource class is both the interface and the base class for the hierarchie of map source.
void vik_map_source_get_copyright (VikMapSource *self
,LatLonBBox bbox
,gdouble zoom
,void (*fct) (VikViewport*,const gchar*)
,void *data
);
Retrieve copyright(s) for the corresponding bounding box and zoom level.
const gchar *
vik_map_source_get_license_url (VikMapSource *self
);
VikViewportDrawMode
vik_map_source_get_drawmode (VikMapSource *self
);
gboolean
vik_map_source_is_direct_file_access (VikMapSource *self
);
Return true when we can bypass all this download malarky
Treat the files as a pre generated data set in OSM tile server layout: tiledir/d
/d
/d
.png
gboolean
vik_map_source_is_mbtiles (VikMapSource *self
);
Return true when the map is in an MB Tiles format. See http://github.com/mapbox/mbtiles-spec (Read Only ATM)
gboolean
vik_map_source_is_osm_meta_tiles (VikMapSource *self
);
Treat the files as a pre generated data set directly by tirex or renderd tiledir/Z/[xxxxyyyy]/[xxxxyyyy]/[xxxxyyyy]/[xxxxyyyy]/[xxxxyyyy].meta
gboolean
vik_map_source_supports_download_only_new
(VikMapSource *self
);
const gchar *
vik_map_source_get_file_extension (VikMapSource *self
);
Returns the file extension of files held on disk. Typically .png but may be .jpg or whatever the user defines
gboolean vik_map_source_coord_to_mapcoord (VikMapSource *self
,const VikCoord *src
,gdouble xzoom
,gdouble yzoom
,MapCoord *dest
);
void vik_map_source_mapcoord_to_center_coord (VikMapSource *self
,MapCoord *src
,VikCoord *dest
);
int vik_map_source_download (VikMapSource *self
,MapCoord *src
,const gchar *dest_fn
,void *handle
);
void *
vik_map_source_download_handle_init (VikMapSource *self
);
void vik_map_source_download_handle_cleanup (VikMapSource *self
,void *handle
);