![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
ChamplainNetworkBboxTileSourceChamplainNetworkBboxTileSource — A map source that loads tile data from an OpenStreetMap API server |
struct ChamplainNetworkBboxTileSource; ChamplainNetworkBboxTileSource * champlain_network_bbox_tile_source_new_full (const gchar *id
,const gchar *name
,const gchar *license
,const gchar *license_uri
,guint min_zoom
,guint max_zoom
,guint tile_size
,ChamplainMapProjection projection
,ChamplainRenderer *renderer
); void champlain_network_bbox_tile_source_load_map_data (ChamplainNetworkBboxTileSource *map_data_source
,gdouble bound_left
,gdouble bound_bottom
,gdouble bound_right
,gdouble bound_top
); const gchar * champlain_network_bbox_tile_source_get_api_uri (ChamplainNetworkBboxTileSource *map_data_source
); void champlain_network_bbox_tile_source_set_api_uri (ChamplainNetworkBboxTileSource *map_data_source
,const gchar *api_uri
);
GObject +----GInitiallyUnowned +----ChamplainMapSource +----ChamplainTileSource +----ChamplainNetworkBboxTileSource
"api-uri" gchar* : Read / Write "proxy-uri" gchar* : Read / Write "state" ChamplainState : Read / Write
This map source source downloads the map data from an OpenStreetMap API server. It supports protocol version 0.5 and 0.6.
ChamplainNetworkBboxTileSource * champlain_network_bbox_tile_source_new_full (const gchar *id
,const gchar *name
,const gchar *license
,const gchar *license_uri
,guint min_zoom
,guint max_zoom
,guint tile_size
,ChamplainMapProjection projection
,ChamplainRenderer *renderer
);
Constructor of ChamplainNetworkBboxTileSource.
|
the map source's id |
|
the map source's name |
|
the map source's license |
|
the map source's license URI |
|
the map source's minimum zoom level |
|
the map source's maximum zoom level |
|
the map source's tile size (in pixels) |
|
the map source's projection |
|
the ChamplainRenderer used to render tiles |
Returns : |
a constructed ChamplainNetworkBboxTileSource object |
Since 0.8
void champlain_network_bbox_tile_source_load_map_data (ChamplainNetworkBboxTileSource *map_data_source
,gdouble bound_left
,gdouble bound_bottom
,gdouble bound_right
,gdouble bound_top
);
Asynchronously loads map data within a bounding box from the server. The box must not exceed an edge size of 0.25 degree. There are also limitations on the maximum number of nodes that can be requested.
For details, see: http://api.openstreetmap.org/api/capabilities
|
a ChamplainNetworkBboxTileSource |
|
the left bound in degree |
|
the lower bound in degree |
|
the right bound in degree |
|
the upper bound in degree |
Since 0.8
const gchar * champlain_network_bbox_tile_source_get_api_uri
(ChamplainNetworkBboxTileSource *map_data_source
);
Gets the URI of the API server.
|
a ChamplainNetworkBboxTileSource |
Returns : |
the URI of the API server. |
Since 0.8
void champlain_network_bbox_tile_source_set_api_uri (ChamplainNetworkBboxTileSource *map_data_source
,const gchar *api_uri
);
Sets the URI of the API server.
|
a ChamplainNetworkBboxTileSource |
|
an URI of an API server |
Since 0.8
"api-uri"
property "api-uri" gchar* : Read / Write
The URI of an OpenStreetMap API server
Default value: "http://www.informationfreeway.org/api/0.6"
Since 0.8
"proxy-uri"
property "proxy-uri" gchar* : Read / Write
The proxy URI to use to access network
Default value: ""
Since 0.8
"state"
property"state" ChamplainState : Read / Write
The map source's state. Useful to know if the data source is loading or not.
Default value: CHAMPLAIN_STATE_NONE
Since 0.8