From 92a53cdf0a0c53a8a666b548c24070e1218ab193 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sun, 28 Jun 2009 20:40:25 -0400 Subject: [PATCH] Add OpenStreetMap Transport Map --- AUTHORS | 1 + champlain/champlain-map-source-factory.c | 17 +++++++++++++++++ champlain/champlain-map-source-factory.h | 1 + 3 files changed, 19 insertions(+) diff --git a/AUTHORS b/AUTHORS index cdb5b6a..261f51e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -18,3 +18,4 @@ Sjoerd Simons Victor Godoy Poluceno Javier Jardón Patryk Zawadski +Sebastian Reichel diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c index 23ef31d..1e6b3c0 100644 --- a/champlain/champlain-map-source-factory.c +++ b/champlain/champlain-map-source-factory.c @@ -200,6 +200,21 @@ ChamplainMapSourceDesc OSM_CYCLEMAP_DESC = NULL }; +static +ChamplainMapSourceDesc OSM_TRANSPORTMAP_DESC = + { + CHAMPLAIN_MAP_SOURCE_OSM_TRANSPORT_MAP, + "OpenStreetMap Transport Map", + "(CC) BY 2.0 OpenStreetMap contributors", + "http://creativecommons.org/licenses/by/2.0/", + 0, + 18, + CHAMPLAIN_MAP_PROJECTION_MERCATOR, + champlain_map_source_new_generic, + "http://tile.xn--pnvkarte-m4a.de/tilegen/#Z#/#X#/#Y#.png", + NULL + }; + static ChamplainMapSourceDesc OAM_DESC = { @@ -243,6 +258,8 @@ champlain_map_source_factory_init (ChamplainMapSourceFactory *factory) OSM_MAPNIK_DESC.constructor, OSM_MAPNIK_DESC.data); champlain_map_source_factory_register (factory, &OSM_CYCLEMAP_DESC, OSM_CYCLEMAP_DESC.constructor, OSM_CYCLEMAP_DESC.data); + champlain_map_source_factory_register (factory, &OSM_TRANSPORTMAP_DESC, + OSM_TRANSPORTMAP_DESC.constructor, OSM_TRANSPORTMAP_DESC.data); champlain_map_source_factory_register (factory, &OSM_OSMARENDER_DESC, OSM_OSMARENDER_DESC.constructor, OSM_OSMARENDER_DESC.data); champlain_map_source_factory_register (factory, &OAM_DESC, diff --git a/champlain/champlain-map-source-factory.h b/champlain/champlain-map-source-factory.h index 1782c42..14470c7 100644 --- a/champlain/champlain-map-source-factory.h +++ b/champlain/champlain-map-source-factory.h @@ -72,6 +72,7 @@ champlain_map_source_factory_register (ChamplainMapSourceFactory *factory, #define CHAMPLAIN_MAP_SOURCE_OSM_MAPNIK "osm-mapnik" #define CHAMPLAIN_MAP_SOURCE_OSM_OSMARENDER "osm-osmarender" #define CHAMPLAIN_MAP_SOURCE_OSM_CYCLE_MAP "osm-cyclemap" +#define CHAMPLAIN_MAP_SOURCE_OSM_TRANSPORT_MAP "osm-transportmap" #define CHAMPLAIN_MAP_SOURCE_OAM "oam" #define CHAMPLAIN_MAP_SOURCE_MFF_RELIEF "mff-relief" -- 2.39.5