Index: branches/Maps0.8/includes/services/GoogleMaps/Maps_GoogleMapsDispMap.php |
— | — | @@ -14,16 +14,9 @@ |
15 | 15 | * @see MapsBaseMap::getMapHTML() |
16 | 16 | */ |
17 | 17 | public function getMapHTML( array $params, Parser $parser, $mapName ) { |
18 | | - $output = $this->service->getOverlayOutput( $mapName, $params['overlays'], $params['controls'] ); |
19 | | - |
20 | | - return $output . Html::element( |
21 | | - 'div', |
22 | | - array( |
23 | | - 'id' => $mapName, |
24 | | - 'style' => "width: {$params['width']}; height: {$params['height']}; background-color: #cccccc; overflow: hidden;", |
25 | | - ), |
26 | | - wfMsg( 'maps-loading-map' ) |
27 | | - ); |
| 18 | + return |
| 19 | + $this->service->getOverlayOutput( $mapName, $params['overlays'], $params['controls'] ) |
| 20 | + . parent::getMapHTML( $params, $parser, $mapName ); |
28 | 21 | } |
29 | 22 | |
30 | 23 | } |
Index: branches/Maps0.8/includes/services/GoogleMaps/Maps_GoogleMapsDispPoint.php |
— | — | @@ -14,16 +14,9 @@ |
15 | 15 | * @see MapsBasePointMap::getMapHTML |
16 | 16 | */ |
17 | 17 | public function getMapHTML( array $params, Parser $parser, $mapName ) { |
18 | | - $output = $this->service->getOverlayOutput( $mapName, $params['overlays'], $params['controls'] ); |
19 | | - |
20 | | - return $output . Html::element( |
21 | | - 'div', |
22 | | - array( |
23 | | - 'id' => $mapName, |
24 | | - 'style' => "width: {$params['width']}; height: {$params['height']}; background-color: #cccccc; overflow: hidden;", |
25 | | - ), |
26 | | - wfMsg( 'maps-loading-map' ) |
27 | | - ); |
| 18 | + return |
| 19 | + $this->service->getOverlayOutput( $mapName, $params['overlays'], $params['controls'] ) |
| 20 | + . parent::getMapHTML( $params, $parser, $mapName ); |
28 | 21 | } |
29 | 22 | |
30 | 23 | } |