[libchamplain] Add OpenStreetMap Transport Map
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [libchamplain] Add OpenStreetMap Transport Map
- Date: Sat, 25 Jul 2009 00:16:14 +0000 (UTC)
commit 92a53cdf0a0c53a8a666b548c24070e1218ab193
Author: Sebastian Reichel <elektranox gmail com>
Date: Sun Jun 28 20:40:25 2009 -0400
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(+), 0 deletions(-)
---
diff --git a/AUTHORS b/AUTHORS
index cdb5b6a..261f51e 100644
--- 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>
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
@@ -201,6 +201,21 @@ ChamplainMapSourceDesc OSM_CYCLEMAP_DESC =
};
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 =
{
CHAMPLAIN_MAP_SOURCE_OAM,
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]