Virtual Method
ShumateDataSourceget_tile_data_async
Declaration [src]
void
get_tile_data_async (
ShumateDataSource* self,
int x,
int y,
int zoom_level,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Gets the data for the tile at the given coordinates.
Some data sources may return data multiple times. For example,
ShumateTileDownloader
may return data from a cache, then return updated
data from the network. ShumateDataSource::received-data
is emitted
each time data is received, then callback
is called after the last update.
Parameters
x
-
Type:
int
The X coordinate to fetch.
y
-
Type:
int
The Y coordinate to fetch.
zoom_level
-
Type:
int
The Z coordinate to fetch.
cancellable
-
Type:
GCancellable
A
GCancellable
.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
A
GAsyncReadyCallback
to execute upon completion. user_data
-
Type:
gpointer
Closure data for
callback
.The argument can be NULL
.The data is owned by the caller of the method.