1 | <?php |
||
17 | class LayerManager |
||
18 | { |
||
19 | /** |
||
20 | * @var GeoJsonLayer[] |
||
21 | */ |
||
22 | private $geoJsonLayers = []; |
||
23 | |||
24 | /** |
||
25 | * @var HeatmapLayer[] |
||
26 | */ |
||
27 | private $heatmapLayers = []; |
||
28 | |||
29 | /** |
||
30 | * @var KmlLayer[] |
||
31 | */ |
||
32 | private $kmlLayers = []; |
||
33 | |||
34 | /** |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function hasGeoJsonLayers() |
||
41 | |||
42 | /** |
||
43 | * @return GeoJsonLayer[] |
||
44 | */ |
||
45 | public function getGeoJsonLayers() |
||
49 | |||
50 | /** |
||
51 | * @param GeoJsonLayer[] $geoJsonLayers |
||
52 | */ |
||
53 | public function setGeoJsonLayers(array $geoJsonLayers) |
||
58 | |||
59 | /** |
||
60 | * @param GeoJsonLayer[] $geoJsonLayers |
||
61 | */ |
||
62 | public function addGeoJsonLayers(array $geoJsonLayers) |
||
68 | |||
69 | /** |
||
70 | * @param GeoJsonLayer $geoJsonLayer |
||
71 | * |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function hasGeoJsonLayer(GeoJsonLayer $geoJsonLayer) |
||
78 | |||
79 | /** |
||
80 | * @param GeoJsonLayer $geoJsonLayer |
||
81 | */ |
||
82 | public function addGeoJsonLayer(GeoJsonLayer $geoJsonLayer) |
||
88 | |||
89 | /** |
||
90 | * @param GeoJsonLayer $geoJsonLayer |
||
91 | */ |
||
92 | public function removeGeoJsonLayer(GeoJsonLayer $geoJsonLayer) |
||
97 | |||
98 | /** |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function hasHeatmapLayers() |
||
105 | |||
106 | /** |
||
107 | * @return HeatmapLayer[] |
||
108 | */ |
||
109 | public function getHeatmapLayers() |
||
113 | |||
114 | /** |
||
115 | * @param HeatmapLayer[] $heatmapLayers |
||
116 | */ |
||
117 | public function setHeatmapLayers(array $heatmapLayers) |
||
122 | |||
123 | /** |
||
124 | * @param HeatmapLayer[] $heatmapLayers |
||
125 | */ |
||
126 | public function addHeatmapLayers(array $heatmapLayers) |
||
132 | |||
133 | /** |
||
134 | * @param HeatmapLayer $heatmapLayer |
||
135 | * |
||
136 | * @return bool |
||
137 | */ |
||
138 | public function hasHeatmapLayer(HeatmapLayer $heatmapLayer) |
||
142 | |||
143 | /** |
||
144 | * @param HeatmapLayer $heatmapLayer |
||
145 | */ |
||
146 | public function addHeatmapLayer(HeatmapLayer $heatmapLayer) |
||
152 | |||
153 | /** |
||
154 | * @param HeatmapLayer $heatmapLayer |
||
155 | */ |
||
156 | public function removeHeatmapLayer(HeatmapLayer $heatmapLayer) |
||
161 | |||
162 | /** |
||
163 | * @return bool |
||
164 | */ |
||
165 | public function hasKmlLayers() |
||
169 | |||
170 | /** |
||
171 | * @return KmlLayer[] |
||
172 | */ |
||
173 | public function getKmlLayers() |
||
177 | |||
178 | /** |
||
179 | * @param KmlLayer[] $kmlLayers |
||
180 | */ |
||
181 | public function setKmlLayers(array $kmlLayers) |
||
186 | |||
187 | /** |
||
188 | * @param KmlLayer[] $kmlLayers |
||
189 | */ |
||
190 | public function addKmlLayers(array $kmlLayers) |
||
196 | |||
197 | /** |
||
198 | * @param KmlLayer $kmlLayer |
||
199 | * |
||
200 | * @return bool |
||
201 | */ |
||
202 | public function hasKmlLayer(KmlLayer $kmlLayer) |
||
206 | |||
207 | /** |
||
208 | * @param KmlLayer $kmlLayer |
||
209 | */ |
||
210 | public function addKmlLayer(KmlLayer $kmlLayer) |
||
216 | |||
217 | /** |
||
218 | * @param KmlLayer $kmlLayer |
||
219 | */ |
||
220 | public function removeKmlLayer(KmlLayer $kmlLayer) |
||
225 | } |
||
226 |