GSList *registered_sources;
};
-static ChamplainMapSource * champlain_map_source_new_osm_mapnik (
+static ChamplainMapSource * champlain_map_source_new_generic (
ChamplainMapSourceDesc *desc, gpointer data);
-static ChamplainMapSource * champlain_map_source_new_osm_cyclemap (
- ChamplainMapSourceDesc *desc, gpointer data);
-static ChamplainMapSource * champlain_map_source_new_osm_osmarender (
- ChamplainMapSourceDesc *desc, gpointer data);
-static ChamplainMapSource * champlain_map_source_new_oam (
- ChamplainMapSourceDesc *desc, gpointer data);
-static ChamplainMapSource * champlain_map_source_new_mff_relief (
- ChamplainMapSourceDesc *desc, gpointer data);
static void
0,
18,
CHAMPLAIN_MAP_PROJECTION_MERCATOR,
- champlain_map_source_new_osm_mapnik,
- NULL
+ champlain_map_source_new_generic,
+ "http://tile.openstreetmap.org/#Z#/#X#/#Y#.png"
};
static
0,
18,
CHAMPLAIN_MAP_PROJECTION_MERCATOR,
- champlain_map_source_new_osm_osmarender,
- NULL
+ champlain_map_source_new_generic,
+ "http://tah.openstreetmap.org/Tiles/tile/#Z#/#X#/#Y#.png"
};
static
0,
18,
CHAMPLAIN_MAP_PROJECTION_MERCATOR,
- champlain_map_source_new_osm_cyclemap,
- NULL
+ champlain_map_source_new_generic,
+ "http://andy.sandbox.cloudmade.com/tiles/cycle/#Z#/#X#/#Y#.png"
};
static
0,
17,
CHAMPLAIN_MAP_PROJECTION_MERCATOR,
- champlain_map_source_new_oam,
- NULL
+ champlain_map_source_new_generic,
+ "http://tile.openaerialmap.org/tiles/1.0.0/openaerialmap-900913/#Z#/#X#/#Y#.jpg"
};
static
0,
11,
CHAMPLAIN_MAP_PROJECTION_MERCATOR,
- champlain_map_source_new_mff_relief,
- NULL
+ champlain_map_source_new_generic,
+ "http://maps-for-free.com/layer/relief/z#Z#/row#Y#/#Z#_#X#-#Y#.jpg"
};
static void
}
static ChamplainMapSource *
-champlain_map_source_new_osm_cyclemap (
+champlain_map_source_new_generic (
ChamplainMapSourceDesc *desc, gpointer data)
{
return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (
desc->max_zoom_level,
256,
desc->projection,
- "http://andy.sandbox.cloudmade.com/tiles/cycle/#Z#/#X#/#Y#.png"));
+ (const gchar *)desc->data));
}
-
-static ChamplainMapSource *
-champlain_map_source_new_osm_osmarender (
- ChamplainMapSourceDesc *desc, gpointer data)
-{
- return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (
- desc->id,
- desc->name,
- desc->license,
- desc->license_uri,
- desc->min_zoom_level,
- desc->max_zoom_level,
- 256,
- desc->projection,
- "http://tah.openstreetmap.org/Tiles/tile/#Z#/#X#/#Y#.png"));
-}
-
-static ChamplainMapSource *
-champlain_map_source_new_osm_mapnik (
- ChamplainMapSourceDesc *desc, gpointer data)
-{
- return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (
- desc->id,
- desc->name,
- desc->license,
- desc->license_uri,
- desc->min_zoom_level,
- desc->max_zoom_level,
- 256,
- desc->projection,
- "http://tile.openstreetmap.org/#Z#/#X#/#Y#.png"));
-}
-
-static ChamplainMapSource *
-champlain_map_source_new_oam (
- ChamplainMapSourceDesc *desc, gpointer data)
-{
- return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full (
- desc->id,
- desc->name,
- desc->license,
- desc->license_uri,
- desc->min_zoom_level,
- desc->max_zoom_level,
- 256,
- desc->projection,
- "http://tile.openaerialmap.org/tiles/1.0.0/openaerialmap-900913/#Z#/#X#/#Y#.jpg"));
-}
-
-static ChamplainMapSource *
-champlain_map_source_new_mff_relief (
- ChamplainMapSourceDesc *desc, gpointer data)
-{
- return CHAMPLAIN_MAP_SOURCE (champlain_network_map_source_new_full ( desc->id,
- desc->name,
- desc->license,
- desc->license_uri,
- desc->min_zoom_level,
- desc->max_zoom_level,
- 256,
- desc->projection,
- "http://maps-for-free.com/layer/relief/z#Z#/row#Y#/#Z#_#X#-#Y#.jpg"));
-}