]> err.no Git - libchamplain/commitdiff
Add OpenStreetMap Transport Map
authorSebastian Reichel <elektranox@gmail.com>
Mon, 29 Jun 2009 00:40:25 +0000 (20:40 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 29 Jun 2009 00:43:08 +0000 (20:43 -0400)
AUTHORS
champlain/champlain-map-source-factory.c
champlain/champlain-map-source-factory.h

diff --git a/AUTHORS b/AUTHORS
index cdb5b6a1bf24124b7019b92d6c62496a53fd8849..261f51e42c81b56c1543cb52188b5e96aa889585 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -18,3 +18,4 @@ Sjoerd Simons <sjoerd@luon.net>
 Victor Godoy Poluceno <victorpoluceno@gmail.com>
 Javier Jardón <javierjc1982@gmail.com>
 Patryk Zawadski <patrys@pld-linux.org>
+Sebastian Reichel <elektranox@gmail.com>
index 23ef31d8c367eb18159c9868082f85e5d3937185..1e6b3c095fd1f432aa050e384fdfd135f959f30c 100644 (file)
@@ -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,
index 1782c429cf48b9af9a23b8ce789e8ae9baae0bec..14470c77c1e6008134b9513cce1fe5fd8e448539 100644 (file)
@@ -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"