- VikMapsLayer_MapType google_1 = { 7, 256, 256, VIK_VIEWPORT_DRAWMODE_MERCATOR, google_coord_to_mapcoord, google_mapcoord_to_center_coord, google_download };
- VikMapsLayer_MapType google_2 = { 10, 256, 256, VIK_VIEWPORT_DRAWMODE_MERCATOR, google_coord_to_mapcoord, google_mapcoord_to_center_coord, google_trans_download };
- VikMapsLayer_MapType google_3 = { 11, 256, 256, VIK_VIEWPORT_DRAWMODE_MERCATOR, google_coord_to_mapcoord, google_mapcoord_to_center_coord, google_kh_download };
- VikMapsLayer_MapType google_4 = { 16, 256, 256, VIK_VIEWPORT_DRAWMODE_MERCATOR, google_coord_to_mapcoord, google_mapcoord_to_center_coord, google_terrain_download };
-
- maps_layer_register_type(_("Google Maps"), 7, &google_1);
- maps_layer_register_type(_("Transparent Google Maps"), 10, &google_2);
- maps_layer_register_type(_("Google Satellite Images"), 11, &google_3);
- maps_layer_register_type(_("Google Terrain Maps"), 16, &google_4);
+ VikMapType *google_1 = VIK_MAP_TYPE(google_map_type_new_with_id(7));
+ VikMapType *google_2 = VIK_MAP_TYPE(google_map_type_new_with_id(10));
+ //{ 10, 256, 256, VIK_VIEWPORT_DRAWMODE_MERCATOR, google_coord_to_mapcoord, google_mapcoord_to_center_coord, google_trans_download };
+ VikMapType *google_3 = VIK_MAP_TYPE(google_map_type_new_with_id(11));
+ //{ 11, 256, 256, VIK_VIEWPORT_DRAWMODE_MERCATOR, google_coord_to_mapcoord, google_mapcoord_to_center_coord, google_kh_download };
+ VikMapType *google_4 = VIK_MAP_TYPE(google_map_type_new_with_id(16));
+ //{ 16, 256, 256, VIK_VIEWPORT_DRAWMODE_MERCATOR, google_coord_to_mapcoord, google_mapcoord_to_center_coord, google_terrain_download };
+
+ maps_layer_register_type(_("Google Maps"), 7, google_1);
+ maps_layer_register_type(_("Transparent Google Maps"), 10, google_2);
+ maps_layer_register_type(_("Google Satellite Images"), 11, google_3);
+ maps_layer_register_type(_("Google Terrain Maps"), 16, google_4);