X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/c9ee385c638ffa5266b9cc703620939ac03a7c07..bfecd26e5a400e54bfb705112e6eb1ebf6084920:/src/osm.c diff --git a/src/osm.c b/src/osm.c index e00dd41f..5503c00d 100644 --- a/src/osm.c +++ b/src/osm.c @@ -40,7 +40,8 @@ void osm_init () { "label", "OpenStreetMap (Osmarender)", "hostname", "tah.openstreetmap.org", "url", "/Tiles/tile/%d/%d/%d.png", - "check-file-server-time", VIK_CONFIG_DEFAULT_TILE_AGE, + "check-file-server-time", TRUE, + "use-etag", FALSE, NULL)); VikMapSource *mapnik_type = VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE, @@ -48,7 +49,8 @@ void osm_init () { "label", "OpenStreetMap (Mapnik)", "hostname", "tile.openstreetmap.org", "url", "/%d/%d/%d.png", - "check-file-server-time", VIK_CONFIG_DEFAULT_TILE_AGE, + "check-file-server-time", FALSE, + "use-etag", TRUE, NULL)); VikMapSource *maplint_type = VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE, @@ -56,15 +58,17 @@ void osm_init () { "label", "OpenStreetMap (Maplint)", "hostname", "tah.openstreetmap.org", "url", "/Tiles/maplint.php/%d/%d/%d.png", - "check-file-server-time", VIK_CONFIG_DEFAULT_TILE_AGE, + "check-file-server-time", TRUE, + "use-etag", FALSE, NULL)); VikMapSource *cycle_type = VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE, "id", 17, "label", "OpenStreetMap (Cycle)", - "hostname", "thunderflames.org/tiles/cycle/", - "url", "%d/%d/%d.png", - "check-file-server-time", VIK_CONFIG_DEFAULT_TILE_AGE, + "hostname", "b.tile.opencyclemap.org", + "url", "/cycle/%d/%d/%d.png", + "check-file-server-time", TRUE, + "use-etag", FALSE, NULL)); maps_layer_register_map_source (osmarender_type);