From: Andy Spencer Date: Sat, 2 Jul 2011 04:17:45 +0000 (+0000) Subject: Update map URL and layers X-Git-Tag: v0.5.1~7 X-Git-Url: http://pileus.org/git/?p=grits;a=commitdiff_plain;h=f938711b0bf13e52cb8e93344d6114a5d161d4a6 Update map URL and layers Server moved to vmap0.tiles.osgeo.org Added new layers for labels, roads, and a few other things --- 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)