Shumate – shumate-1.0 Reference Manual
Packages
shumate-1.0
Shumate
GeometryType
MapProjection
State
Unit
VectorValueType
Location
Compass
Coordinate
DataSource
DataSourceRequest
FileCache
Layer
License
Map
MapLayer
MapSource
MapSourceRegistry
Marker
MarkerLayer
PathLayer
Point
RasterRenderer
Scale
SimpleMap
SymbolEvent
Tile
TileDownloader
VectorReader
VectorReaderIter
VectorRenderer
VectorSprite
VectorSpriteSheet
VectorValue
Viewport
MAJOR_VERSION
MAP_SOURCE_MFF_RELIEF
MAP_SOURCE_OSM_CYCLE_MAP
MAP_SOURCE_OSM_MAPNIK
MAP_SOURCE_OSM_TRANSPORT_MAP
MAP_SOURCE_OWM_CLOUDS
MAP_SOURCE_OWM_PRECIPITATION
MAP_SOURCE_OWM_PRESSURE
MAP_SOURCE_OWM_TEMPERATURE
MAP_SOURCE_OWM_WIND
MAX_LATITUDE
MAX_LONGITUDE
MICRO_VERSION
MINOR_VERSION
MIN_LATITUDE
MIN_LONGITUDE
VectorSpriteFallbackFunc
file_cache_error_quark
get_user_agent
set_user_agent
style_error_quark
tile_downloader_error_quark
Shumate
Description:
Content:
Interfaces:
Location
-
An interface common to objects having latitude and longitude
Classes:
Compass
-
A widget displaying a compass.
Coordinate
-
A simple object implementing [ iface@Location].
DataSource
-
The base class used to retrieve tiles as [struct@GLib.
DataSourceRequest
-
Represents a request to a [class@DataSource] for a tile.
FileCache
-
A cache that stores and retrieves tiles from the file system.
Layer
-
Every layer (overlay that moves together with the map) has to inherit this class and implement its virtual methods.
License
-
A widget that displays license text.
Map
-
The Map widget is a [class@Gtk.
MapLayer
-
A [class@Shumate.
MapSource
-
The base class for all map sources.
MapSourceRegistry
-
This object allows you to hold [class@MapSource] instances, you can access a default set of sources with [method@MapSourceRegistry.
Marker
-
Markers represent points of interest on a map.
MarkerLayer
-
Displays markers on the map.
PathLayer
-
A layer displaying line path between inserted [iface@Location] objects
Point
-
A simple variant of [class@Marker] showing the location of the point as a circle on the map.
RasterRenderer
Scale
-
A widget displaying a scale.
SimpleMap
-
A ready-to-use map [class@Gtk.
SymbolEvent
-
An object containing the details of a map feature that has been clicked.
Tile
-
An object that represents map tiles.
TileDownloader
-
A [class@DataSource] that asynchronously downloads tiles from an online service using a given template.
VectorReader
-
Provides low-level access to the contents of a vector tile.
VectorReaderIter
-
Reads the layers and features of a vector tile.
VectorRenderer
-
A [class@MapSource] that renders tiles from a given vector data source.
VectorSprite
-
A sprite used to draw textures or icons.
VectorSpriteSheet
-
A collection of [ class@VectorSprite]s.
VectorValue
-
A mutable value used in the vector style specification.
Viewport
-
The object holding the coordinate, zoom-level, and rotation state of the current view.
Enums:
GeometryType
-
A type of geometry.
MapProjection
-
Projections supported by the library.
State
-
Tile loading state.
Unit
-
Units used by the scale.
VectorValueType
-
Type of a [struct@VectorValue] .
Error domains:
FileCacheError
-
Error codes in the
FileCacheError
domain.
StyleError
-
Error codes that occurs while parsing the style in [class@VectorRenderer].
TileDownloaderError
-
Error codes in the
TileDownloaderError
domain.
Constants:
public
const
int
MAJOR_VERSION
The major version of libshumate (1, if
shumate_version
is 1.2.3)
public
const
string
MAP_SOURCE_MFF_RELIEF
Maps for Free Relief
public
const
string
MAP_SOURCE_OSM_CYCLE_MAP
OpenStreetMap Cycle Map
public
const
string
MAP_SOURCE_OSM_MAPNIK
OpenStreetMap Mapnik
public
const
string
MAP_SOURCE_OSM_TRANSPORT_MAP
OpenStreetMap Transport Map
public
const
string
MAP_SOURCE_OWM_CLOUDS
OpenWeatherMap clouds layer
public
const
string
MAP_SOURCE_OWM_PRECIPITATION
OpenWeatherMap precipitation
public
const
string
MAP_SOURCE_OWM_PRESSURE
OpenWeatherMap sea level pressure
public
const
string
MAP_SOURCE_OWM_TEMPERATURE
OpenWeatherMap temperature
public
const
string
MAP_SOURCE_OWM_WIND
OpenWeatherMap wind
public
const
double
MAX_LATITUDE
The maximal possible latitude value.
public
const
double
MAX_LONGITUDE
The maximal possible longitude value.
public
const
int
MICRO_VERSION
The micro version of libshumate (3, if
shumate_version
is 1.2.3)
public
const
int
MINOR_VERSION
The minor version of libshumate (2, if
shumate_version
is 1.2.3)
public
const
double
MIN_LATITUDE
The minimal possible latitude value.
public
const
double
MIN_LONGITUDE
The minimal possible longitude value.
Delegates:
public
delegate
VectorSprite
?
VectorSpriteFallbackFunc
(
VectorSpriteSheet
sprite_sheet,
string
name,
double
scale)
A function to generate sprites for a [class@VectorSpriteSheet].
Functions:
public
Quark
file_cache_error_quark
()
public
unowned
string
get_user_agent
()
Gets the user agent libshumate will use for all requests.
public
void
set_user_agent
(
string
? new_user_agent)
Sets the user agent that libshumate uses for all requests.
public
Quark
style_error_quark
()
public
Quark
tile_downloader_error_quark
()