dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
alllayersoftype.cpp
Go to the documentation of this file.
1 
13 /*
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
23 *
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, see <http://www.gnu.org/licenses/>
26 */
27 #include "alllayersoftype.h"
28 
29 namespace core {
31  {
32 
33  }
34  QVector<MapType::Types> AllLayersOfType::GetAllLayersOfType(const MapType::Types &type)
35  {
36  QVector<MapType::Types> types;
37  {
38  switch(type)
39  {
40  case MapType::GoogleHybrid:
41  {
42 
43  types.append(MapType::GoogleSatellite);
44  types.append(MapType::GoogleLabels);
45  }
46  break;
47 
48  case MapType::GoogleHybridChina:
49  {
50  types.append(MapType::GoogleSatelliteChina);
51  types.append(MapType::GoogleLabelsChina);
52  }
53  break;
54 
55  case MapType::GoogleHybridKorea:
56  {
57  types.append(MapType::GoogleSatelliteKorea);
58  types.append(MapType::GoogleLabelsKorea);
59  }
60  break;
61 
62  case MapType::YahooHybrid:
63  {
64  types.append(MapType::YahooSatellite);
65  types.append(MapType::YahooLabels);
66  }
67  break;
68 
69  case MapType::ArcGIS_MapsLT_Map_Hybrid:
70  {
71  types.append(MapType::ArcGIS_MapsLT_OrtoFoto);
72  types.append(MapType::ArcGIS_MapsLT_Map_Labels);
73  }
74  break;
75 
76  default:
77  {
78  types.append(type);
79  }
80  break;
81  }
82  }
83 
84  return types;
85 
86  }
87 }
QVector< MapType::Types > GetAllLayersOfType(const MapType::Types &type)