Skip to content

Commit

Permalink
Make OL hack accessable from SemanticMaps
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Jan 7, 2014
1 parent f5e8b92 commit 5e3e925
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/Maps_DisplayMapRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ protected function handleMarkerData( array &$params, Parser $parser ) {
$this->handleShapeData( $params, $parserClone );

if ( $params['mappingservice'] === 'openlayers' ) {
$params['layers'] = $this->evilOpenLayersHack( $params['layers'] );
$params['layers'] = self::evilOpenLayersHack( $params['layers'] );
}
}

Expand Down Expand Up @@ -186,7 +186,7 @@ protected function handleShapeData( array &$params, Parser $parserClone ) {
*
* @return string[]
*/
protected function evilOpenLayersHack( $layers ) {
public static function evilOpenLayersHack( $layers ) {
global $egMapsOLLayerGroups, $egMapsOLAvailableLayers;

$layerDefs = array();
Expand Down Expand Up @@ -252,7 +252,7 @@ protected function evilOpenLayersHack( $layers ) {
}
}

MapsMappingServices::getServiceInstance( 'openlayers' )->addLayerDependencies( $this->getLayerDependencies( $layerNames ) );
MapsMappingServices::getServiceInstance( 'openlayers' )->addLayerDependencies( self::getLayerDependencies( $layerNames ) );

return $layerDefs;
}
Expand All @@ -261,7 +261,7 @@ protected function evilOpenLayersHack( $layers ) {
* FIXME
* @see evilOpenLayersHack
*/
protected function getLayerDependencies( array $layerNames ) {
private static function getLayerDependencies( array $layerNames ) {
global $egMapsOLLayerDependencies, $egMapsOLAvailableLayers;

$layerDependencies = array();
Expand Down

0 comments on commit 5e3e925

Please sign in to comment.