[libchamplain/libchamplain-0-8] Include MapQuest renderer for OSM see: http://wiki.openstreetmap.org/wiki/MapQuest
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-8] Include MapQuest renderer for OSM see: http://wiki.openstreetmap.org/wiki/MapQuest
- Date: Sun, 7 Nov 2010 23:48:15 +0000 (UTC)
commit ddc046e6d9024dbc7a02035d779049c6406b4636
Author: Tomaž Vajngerl <quikee gmail com>
Date: Mon Oct 25 21:30:33 2010 +0200
Include MapQuest renderer for OSM
see: http://wiki.openstreetmap.org/wiki/MapQuest
champlain/champlain-map-source-factory.c | 17 +++++++++++++++++
champlain/champlain-map-source-factory.h | 7 +++++++
2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-map-source-factory.c b/champlain/champlain-map-source-factory.c
index ee67714..f4e57e8 100644
--- a/champlain/champlain-map-source-factory.c
+++ b/champlain/champlain-map-source-factory.c
@@ -171,6 +171,21 @@ ChamplainMapSourceDesc OSM_OSMARENDER_DESC =
};
static
+ChamplainMapSourceDesc OSM_MAPQUEST_DESC =
+{
+ CHAMPLAIN_MAP_SOURCE_OSM_MAPQUEST,
+ "MapQuest OSM",
+ "Data, imagery and map information provided by MapQuest, Open Street Map and contributors",
+ "http://creativecommons.org/licenses/by-sa/2.0/",
+ 0,
+ 17,
+ CHAMPLAIN_MAP_PROJECTION_MERCATOR,
+ champlain_map_source_new_generic,
+ "http://otile1.mqcdn.com/tiles/1.0.0/osm/#Z#/#X#/#Y#.png",
+ NULL
+};
+
+static
ChamplainMapSourceDesc OSM_CYCLEMAP_DESC =
{
CHAMPLAIN_MAP_SOURCE_OSM_CYCLE_MAP,
@@ -282,6 +297,8 @@ champlain_map_source_factory_init (ChamplainMapSourceFactory *factory)
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, &OSM_MAPQUEST_DESC,
+ OSM_MAPQUEST_DESC.constructor, OSM_MAPQUEST_DESC.data);
#if 0
champlain_map_source_factory_register (factory, &OAM_DESC,
OAM_DESC.constructor, OAM_DESC.data);
diff --git a/champlain/champlain-map-source-factory.h b/champlain/champlain-map-source-factory.h
index f039e9e..8312089 100644
--- a/champlain/champlain-map-source-factory.h
+++ b/champlain/champlain-map-source-factory.h
@@ -98,6 +98,12 @@ gboolean champlain_map_source_factory_register (ChamplainMapSourceFactory *facto
*/
#define CHAMPLAIN_MAP_SOURCE_OSM_OSMARENDER "osm-osmarender"
/**
+ * CHAMPLAIN_MAP_SOURCE_OSM_MAPQUEST:
+ *
+ * Mapquest OpenStreetMap
+ */
+#define CHAMPLAIN_MAP_SOURCE_OSM_MAPQUEST "osm-mapquest"
+/**
* CHAMPLAIN_MAP_SOURCE_OSM_CYCLE_MAP:
*
* OpenStreetMap Cycle Map
@@ -124,6 +130,7 @@ gboolean champlain_map_source_factory_register (ChamplainMapSourceFactory *facto
#else
#define CHAMPLAIN_MAP_SOURCE_OSM_MAPNIK "OpenStreetMap I"
#define CHAMPLAIN_MAP_SOURCE_OSM_OSMARENDER "OpenStreetMap II"
+#define CHAMPLAIN_MAP_SOURCE_OSM_MAPQUEST "Mapquest OSM"
#define CHAMPLAIN_MAP_SOURCE_OSM_CYCLE_MAP "OpenCycleMap"
#define CHAMPLAIN_MAP_SOURCE_OSM_TRANSPORT_MAP "Public Transport"
#define CHAMPLAIN_MAP_SOURCE_OAM "OpenAerialMap"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]