]> git.street.me.uk Git - andy/viking.git/blobdiff - src/terraserver.c
Add Yahoo! Maps webtool link.
[andy/viking.git] / src / terraserver.c
index 23b63c70300fd04dad122a43864602576e7d48bc..9e1636c726ccff055b3368d98da0d7580de356c8 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include "terraserver.h"
-#include "terraserver-map-type.h"
+#include "terraservermapsource.h"
 #include "vikmapslayer.h"
 
 void terraserver_init () {
-  VikMapSource *map_type_1 = VIK_MAP_SOURCE(terraserver_map_type_new_with_id( 2, 2 ));
-  VikMapSource *map_type_2 = VIK_MAP_SOURCE(terraserver_map_type_new_with_id( 1, 1 ));
-  VikMapSource *map_type_3 = VIK_MAP_SOURCE(terraserver_map_type_new_with_id( 4, 4 ));
+  VikMapSource *map_type_1 = VIK_MAP_SOURCE(terraserver_map_source_new_with_id( 2, "Terraserver Topos", 2 ));
+  VikMapSource *map_type_2 = VIK_MAP_SOURCE(terraserver_map_source_new_with_id( 1, "Terraserver Aerials", 1 ));
+  VikMapSource *map_type_3 = VIK_MAP_SOURCE(terraserver_map_source_new_with_id( 4, "Terraserver Urban Areas", 4 ));
 
-  maps_layer_register_map_source ("Terraserver Topos", map_type_1);
-  maps_layer_register_map_source ("Terraserver Aerials", map_type_2);
-  maps_layer_register_map_source ("Terraserver Urban Areas", map_type_3);
+  maps_layer_register_map_source (map_type_1);
+  maps_layer_register_map_source (map_type_2);
+  maps_layer_register_map_source (map_type_3);
 }