Class
ShumateMapSource
Description [src]
abstract class Shumate.MapSource : GObject.Object
{
/* No available fields */
}
The base class for all map sources. Map sources fill ShumateTile
objects
with images from various sources: a web API, for example, or a test pattern
generated on demand.
The most common map source is ShumateRasterRenderer
, which fetches tiles
using a ShumateTileDownloader
.
Instance methods
shumate_map_source_fill_tile_finish
Gets the success value of a completed shumate_map_source_fill_tile_async()
operation.
shumate_map_source_get_column_count
Gets the number of tiles in a column at this zoom level for this map source.
shumate_map_source_get_latitude
Gets the latitude corresponding to this y position in the map source’s projection.
shumate_map_source_get_longitude
Gets the longitude corresponding to this x position in the map source’s projection.
shumate_map_source_get_meters_per_pixel
Gets meters per pixel at the position on the map using this map source’s projection.
shumate_map_source_get_row_count
Gets the number of tiles in a row at this zoom level for this map source.
shumate_map_source_get_tile_size_at_zoom
Gets the apparent size of the map tiles at the given fractional zoom level.
shumate_map_source_get_x
Gets the x position on the map using this map source’s projection. (0, 0) is located at the top left.
shumate_map_source_get_y
Gets the y position on the map using this map source’s projection. (0, 0) is located at the top left.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct ShumateMapSourceClass {
GObjectClass parent_class;
void (* fill_tile_async) (
ShumateMapSource* self,
ShumateTile* tile,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* fill_tile_finish) (
ShumateMapSource* self,
GAsyncResult* result,
GError** error
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
fill_tile_async: void (* fill_tile_async) ( ShumateMapSource* self, ShumateTile* tile, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data )
No description available.
fill_tile_finish: gboolean (* fill_tile_finish) ( ShumateMapSource* self, GAsyncResult* result, GError** error )
No description available.
Virtual methods
Shumate.MapSourceClass.fill_tile_finish
Gets the success value of a completed shumate_map_source_fill_tile_async()
operation.