Index: trunk/extensions/Maps/includes/services/OpenLayers/Maps_OpenLayersDispPoint.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | public function addSpecificMapHTML( Parser $parser ) { |
18 | 18 | global $wgLang; |
19 | 19 | |
20 | | - $layerItems = $this->service->createLayersStringAndLoadDependencies( $this->layers[0] ); |
| 20 | + $this->service->addLayerDependencies( $this->layers[1] ); |
21 | 21 | |
22 | 22 | $mapName = $this->service->getMapId(); |
23 | 23 | |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | $this->centreLon, |
39 | 39 | $this->centreLat, |
40 | 40 | $this->zoom, |
41 | | - [$layerItems], |
| 41 | + {$this->layers[0]}, |
42 | 42 | [$this->controls], |
43 | 43 | $this->markerJs, |
44 | 44 | "$langCode" |
Index: trunk/extensions/Maps/includes/services/OpenLayers/Maps_ParamOLLayers.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | $parameter->setValue( array( |
72 | 72 | '[' . implode( ',', $layerDefs ) . ']', |
73 | 73 | $this->getDependencies( $layerNames ) |
74 | | - ) ); |
| 74 | + ) ); |
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
Index: trunk/extensions/Maps/includes/services/OpenLayers/Maps_OpenLayersDispMap.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | public function addSpecificMapHTML( Parser $parser ) { |
18 | 18 | global $wgLang; |
19 | 19 | |
20 | | - $layerItems = $this->service->addLayerDependencies( $this->layers[1] ); |
| 20 | + $this->service->addLayerDependencies( $this->layers[1] ); |
21 | 21 | |
22 | 22 | $mapName = $this->service->getMapId(); |
23 | 23 | |