1 | <?php |
||
20 | class LayerManager |
||
21 | { |
||
22 | /** |
||
23 | * @var Map|null |
||
24 | */ |
||
25 | private $map; |
||
26 | |||
27 | /** |
||
28 | * @var GeoJsonLayer[] |
||
29 | */ |
||
30 | private $geoJsonLayers = []; |
||
31 | |||
32 | /** |
||
33 | * @var HeatmapLayer[] |
||
34 | */ |
||
35 | private $heatmapLayers = []; |
||
36 | |||
37 | /** |
||
38 | * @var KmlLayer[] |
||
39 | */ |
||
40 | private $kmlLayers = []; |
||
41 | |||
42 | /** |
||
43 | * @return bool |
||
44 | */ |
||
45 | public function hasMap() |
||
49 | |||
50 | /** |
||
51 | * @return Map|null |
||
52 | */ |
||
53 | public function getMap() |
||
57 | |||
58 | /** |
||
59 | * @param Map $map |
||
60 | */ |
||
61 | public function setMap(Map $map) |
||
69 | |||
70 | /** |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function hasGeoJsonLayers() |
||
77 | |||
78 | /** |
||
79 | * @return GeoJsonLayer[] |
||
80 | */ |
||
81 | public function getGeoJsonLayers() |
||
85 | |||
86 | /** |
||
87 | * @param GeoJsonLayer[] $geoJsonLayers |
||
88 | */ |
||
89 | public function setGeoJsonLayers(array $geoJsonLayers) |
||
94 | |||
95 | /** |
||
96 | * @param GeoJsonLayer[] $geoJsonLayers |
||
97 | */ |
||
98 | public function addGeoJsonLayers(array $geoJsonLayers) |
||
104 | |||
105 | /** |
||
106 | * @param GeoJsonLayer $geoJsonLayer |
||
107 | * |
||
108 | * @return bool |
||
109 | */ |
||
110 | public function hasGeoJsonLayer(GeoJsonLayer $geoJsonLayer) |
||
114 | |||
115 | /** |
||
116 | * @param GeoJsonLayer $geoJsonLayer |
||
117 | */ |
||
118 | public function addGeoJsonLayer(GeoJsonLayer $geoJsonLayer) |
||
124 | |||
125 | /** |
||
126 | * @param GeoJsonLayer $geoJsonLayer |
||
127 | */ |
||
128 | public function removeGeoJsonLayer(GeoJsonLayer $geoJsonLayer) |
||
133 | |||
134 | /** |
||
135 | * @return bool |
||
136 | */ |
||
137 | public function hasHeatmapLayers() |
||
141 | |||
142 | /** |
||
143 | * @return HeatmapLayer[] |
||
144 | */ |
||
145 | public function getHeatmapLayers() |
||
149 | |||
150 | /** |
||
151 | * @param HeatmapLayer[] $heatmapLayers |
||
152 | */ |
||
153 | public function setHeatmapLayers(array $heatmapLayers) |
||
161 | |||
162 | /** |
||
163 | * @param HeatmapLayer[] $heatmapLayers |
||
164 | */ |
||
165 | public function addHeatmapLayers(array $heatmapLayers) |
||
171 | |||
172 | /** |
||
173 | * @param HeatmapLayer $heatmapLayer |
||
174 | * |
||
175 | * @return bool |
||
176 | */ |
||
177 | public function hasHeatmapLayer(HeatmapLayer $heatmapLayer) |
||
181 | |||
182 | /** |
||
183 | * @param HeatmapLayer $heatmapLayer |
||
184 | */ |
||
185 | public function addHeatmapLayer(HeatmapLayer $heatmapLayer) |
||
193 | |||
194 | /** |
||
195 | * @param HeatmapLayer $heatmapLayer |
||
196 | */ |
||
197 | public function removeHeatmapLayer(HeatmapLayer $heatmapLayer) |
||
203 | |||
204 | /** |
||
205 | * @return bool |
||
206 | */ |
||
207 | public function hasKmlLayers() |
||
211 | |||
212 | /** |
||
213 | * @return KmlLayer[] |
||
214 | */ |
||
215 | public function getKmlLayers() |
||
219 | |||
220 | /** |
||
221 | * @param KmlLayer[] $kmlLayers |
||
222 | */ |
||
223 | public function setKmlLayers(array $kmlLayers) |
||
231 | |||
232 | /** |
||
233 | * @param KmlLayer[] $kmlLayers |
||
234 | */ |
||
235 | public function addKmlLayers(array $kmlLayers) |
||
241 | |||
242 | /** |
||
243 | * @param KmlLayer $kmlLayer |
||
244 | * |
||
245 | * @return bool |
||
246 | */ |
||
247 | public function hasKmlLayer(KmlLayer $kmlLayer) |
||
251 | |||
252 | /** |
||
253 | * @param KmlLayer $kmlLayer |
||
254 | */ |
||
255 | public function addKmlLayer(KmlLayer $kmlLayer) |
||
263 | |||
264 | /** |
||
265 | * @param KmlLayer $kmlLayer |
||
266 | */ |
||
267 | public function removeKmlLayer(KmlLayer $kmlLayer) |
||
273 | |||
274 | /** |
||
275 | * @param ExtendableInterface $extendable |
||
276 | */ |
||
277 | private function addExtendable(ExtendableInterface $extendable) |
||
283 | |||
284 | /** |
||
285 | * @param ExtendableInterface $extendable |
||
286 | */ |
||
287 | private function removeExtendable(ExtendableInterface $extendable) |
||
293 | |||
294 | /** |
||
295 | * @return bool |
||
296 | */ |
||
297 | private function isAutoZoom() |
||
301 | } |
||
302 |