Shumate.MapSource
Description: Reference for Shumate.MapSource

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

#### Ancestors

- GObject

#### Descendants

- ShumateRasterRenderer
- ShumateVectorRenderer

#### Instance methods

###### shumate_map_source_fill_tile_async

Asynchronous version of shumate_map_source_fill_tile().

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

Gets map source’s id.

###### shumate_map_source_get_latitude

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

###### shumate_map_source_get_license

Gets map source’s license.

###### shumate_map_source_get_license_uri

Gets map source’s license URI.

###### shumate_map_source_get_longitude

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

###### shumate_map_source_get_max_zoom_level

Gets map source’s maximum zoom level.

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

Gets map source’s minimum zoom level.

###### shumate_map_source_get_name

Gets map source’s name.

###### shumate_map_source_get_projection

Gets 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

Gets map source’s tile size.

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

###### shumate_map_source_set_id

Sets the map source’s id.

###### shumate_map_source_set_license

Sets the map source’s license.

###### shumate_map_source_set_license_uri

Sets the map source’s license URI.

###### shumate_map_source_set_max_zoom_level

Sets the map source’s maximum zoom level.

###### shumate_map_source_set_min_zoom_level

Sets the map source’s minimal zoom level.

###### shumate_map_source_set_name

Sets the map source’s name.

###### shumate_map_source_set_projection

Sets the map source’s projection.

###### shumate_map_source_set_tile_size

Sets the map source’s tile size.

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

Please see GObject for a full list of methods.

#### Properties

###### Shumate.MapSource:id

The id of the map source.

###### Shumate.MapSource:license

The usage license of the map source.

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

The usage license’s uri for more information.

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

The maximum zoom level.

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

The minimum zoom level.

###### Shumate.MapSource:name

The name of the map source.

###### Shumate.MapSource:projection

The map projection of the map source.

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

The tile size of the map source.

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

Asynchronous version of shumate_map_source_fill_tile().

###### Shumate.MapSourceClass.fill_tile_finish

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