### Class

# Shumate MapSource

since: 1.0

#### 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`.

Available since: 1.0

#### Ancestors

- GObject

#### Descendants

- ShumateRasterRenderer
- ShumateVectorRenderer

#### Instance methods

###### shumate_map_source_fill_tile_async

Asynchronous version of shumate_map_source_fill_tile().

since: 1.0

###### shumate_map_source_fill_tile_finish

Gets the success value of a completed `shumate_map_source_fill_tile_async()` operation.

since: 1.0

###### shumate_map_source_get_column_count

Gets the number of tiles in a column at this zoom level for this map source.

since: 1.0

###### shumate_map_source_get_id

Gets map source’s id.

since: 1.0

###### shumate_map_source_get_latitude

Gets the latitude corresponding to this y position in the map source’s projection.

since: 1.0

###### shumate_map_source_get_license

Gets map source’s license.

since: 1.0

###### shumate_map_source_get_license_uri

Gets map source’s license URI.

since: 1.0

###### shumate_map_source_get_longitude

Gets the longitude corresponding to this x position in the map source’s projection.

since: 1.0

###### shumate_map_source_get_max_zoom_level

Gets map source’s maximum zoom level.

since: 1.0

###### shumate_map_source_get_meters_per_pixel

Gets meters per pixel at the position on the map using this map source’s projection.

since: 1.0

###### shumate_map_source_get_min_zoom_level

Gets map source’s minimum zoom level.

since: 1.0

###### shumate_map_source_get_name

Gets map source’s name.

since: 1.0

###### shumate_map_source_get_projection

Gets map source’s projection.

since: 1.0

###### shumate_map_source_get_row_count

Gets the number of tiles in a row at this zoom level for this map source.

since: 1.0

###### shumate_map_source_get_tile_size

Gets map source’s tile size.

since: 1.0

###### shumate_map_source_get_tile_size_at_zoom

Gets the apparent size of the map tiles at the given fractional zoom level.

since: 1.0

###### 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.

since: 1.0

###### 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.

since: 1.0

###### shumate_map_source_set_id

Sets the map source’s id.

since: 1.0

###### shumate_map_source_set_license

Sets the map source’s license.

since: 1.0

###### shumate_map_source_set_license_uri

Sets the map source’s license URI.

since: 1.0

###### shumate_map_source_set_max_zoom_level

Sets the map source’s maximum zoom level.

since: 1.0

###### shumate_map_source_set_min_zoom_level

Sets the map source’s minimal zoom level.

since: 1.0

###### shumate_map_source_set_name

Sets the map source’s name.

since: 1.0

###### shumate_map_source_set_projection

Sets the map source’s projection.

since: 1.0

###### shumate_map_source_set_tile_size

Sets the map source’s tile size.

since: 1.0

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Shumate.MapSource:id

The id of the map source.

since: 1.0

###### Shumate.MapSource:license

The usage license of the map source.

since: 1.0

###### Shumate.MapSource:license-uri

The usage license’s uri for more information.

since: 1.0

###### Shumate.MapSource:max-zoom-level

The maximum zoom level.

since: 1.0

###### Shumate.MapSource:min-zoom-level

The minimum zoom level.

since: 1.0

###### Shumate.MapSource:name

The name of the map source.

since: 1.0

###### Shumate.MapSource:projection

The map projection of the map source.

since: 1.0

###### Shumate.MapSource:tile-size

The tile size of the map source.

since: 1.0

#### 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.

unstable since: 2.0

#### 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_async

Asynchronous version of shumate_map_source_fill_tile().

since: 1.0

###### Shumate.MapSourceClass.fill_tile_finish

Gets the success value of a completed `shumate_map_source_fill_tile_async()` operation.

since: 1.0