- map->mutex = g_mutex_new();
- map->tiles = gis_tile_new(NULL, NORTH, SOUTH, EAST, WEST);
- map->wms = gis_wms_new(
- "http://labs.metacarta.com/wms/vmap0", "basic", "image/png",
- "osm/", "png", TILE_WIDTH, TILE_HEIGHT);
+ map->threads = g_thread_pool_new(_update_tiles, map, 1, FALSE, NULL);
+ map->tiles = grits_tile_new(NULL, 85.0511, -85.0511, EAST, WEST);
+ map->tms = grits_tms_new("http://tile.openstreetmap.org",
+ "osmtile/", "png");
+ map->tiles->proj = GRITS_PROJ_MERCATOR;
+ //map->tiles = grits_tile_new(NULL, NORTH, SOUTH, EAST, WEST);
+ //map->wms = grits_wms_new(
+ // "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);