]> git.street.me.uk Git - andy/viking.git/blobdiff - src/osm.c
Add compatibility facilities
[andy/viking.git] / src / osm.c
index 5fc9043d60d6e5d7b2add41c61e1e43a267518cd..1f72675afd298a45f2efa9efdce3fabffedf2ea4 100644 (file)
--- a/src/osm.c
+++ b/src/osm.c
@@ -30,9 +30,9 @@ void osm_init () {
   VikMapType *maplint_type = VIK_MAP_TYPE(slippy_map_type_new_with_id( 14, "tah.openstreetmap.org", "/Tiles/maplint.php/%d/%d/%d.png"));
   VikMapType *cycle_type = VIK_MAP_TYPE(slippy_map_type_new_with_id( 17, "thunderflames.org/tiles/cycle/", "%d/%d/%d.png" ));
 
   VikMapType *maplint_type = VIK_MAP_TYPE(slippy_map_type_new_with_id( 14, "tah.openstreetmap.org", "/Tiles/maplint.php/%d/%d/%d.png"));
   VikMapType *cycle_type = VIK_MAP_TYPE(slippy_map_type_new_with_id( 17, "thunderflames.org/tiles/cycle/", "%d/%d/%d.png" ));
 
-  maps_layer_register_type("OpenStreetMap (Osmarender)", 12, osmarender_type);
-  maps_layer_register_type("OpenStreetMap (Mapnik)", 13, mapnik_type);
-  maps_layer_register_type("OpenStreetMap (Maplint)", 14, maplint_type);
-  maps_layer_register_type("OpenStreetMap (Cycle)", 17, cycle_type);
+  maps_layer_register_map_type("OpenStreetMap (Osmarender)", osmarender_type);
+  maps_layer_register_map_type("OpenStreetMap (Mapnik)", mapnik_type);
+  maps_layer_register_map_type("OpenStreetMap (Maplint)", maplint_type);
+  maps_layer_register_map_type("OpenStreetMap (Cycle)", cycle_type);
 }
 
 }