[grits] Update map URL and layers
- From: Andy Spencer <andys src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [grits] Update map URL and layers
 
- Date: Mon, 29 Aug 2011 00:36:17 +0000 (UTC)
 
commit f938711b0bf13e52cb8e93344d6114a5d161d4a6
Author: Andy Spencer <andy753421 gmail com>
Date:   Sat Jul 2 04:17:45 2011 +0000
    Update map URL and layers
    
    Server moved to vmap0.tiles.osgeo.org
    
    Added new layers for labels, roads, and a few other things
 src/plugins/map.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/map.c b/src/plugins/map.c
index f9d1b67..7505d45 100644
--- a/src/plugins/map.c
+++ b/src/plugins/map.c
@@ -31,7 +31,7 @@
 
 #include "map.h"
 
-#define MAX_RESOLUTION 500
+#define MAX_RESOLUTION 100
 #define TILE_WIDTH     1024
 #define TILE_HEIGHT    512
 
@@ -220,8 +220,9 @@ static void grits_plugin_map_init(GritsPluginMap *map)
 	map->threads = g_thread_pool_new(_update_tiles, map, 1, FALSE, NULL);
 	map->tiles = grits_tile_new(NULL, NORTH, SOUTH, EAST, WEST);
 	map->wms   = grits_wms_new(
-		"http://labs.metacarta.com/wms/vmap0", "basic", "image/png",
-		"osm/", "png", TILE_WIDTH, TILE_HEIGHT);
+		"http://vmap0.tiles.osgeo.org/wms/vmap0",
+		"basic,priroad,secroad,depthcontour,clabel,statelabel",
+		 "image/png", "osm/", "png", TILE_WIDTH, TILE_HEIGHT);
 	g_object_ref(map->tiles);
 }
 static void grits_plugin_map_dispose(GObject *gobject)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]