Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
MapsDisplayMapRenderer Class Reference

Public Member Functions

 __construct (MapsMappingService $service)
 
 renderMap (array $params, Parser $parser)
 

Static Public Member Functions

static evilOpenLayersHack ($layers)
 
static getLayerDependencies ($service, $params)
 

Protected Member Functions

 getMapHTML (array $params, $mapName)
 

Detailed Description

Class handling the #display_map rendering.

GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Kim Eik

Constructor & Destructor Documentation

MapsDisplayMapRenderer::__construct ( MapsMappingService  $service)

Member Function Documentation

static MapsDisplayMapRenderer::evilOpenLayersHack (   $layers)
static

FIXME

Temporary hack until the mapping service handling gets a proper refactor This kind of JS construction is also rather evil and should not be done at this point

Since
3.0
Deprecated:
Parameters
string[]$layers
Returns
string[]
static MapsDisplayMapRenderer::getLayerDependencies (   $service,
  $params 
)
static
MapsDisplayMapRenderer::getMapHTML ( array  $params,
  $mapName 
)
protected

Returns the HTML to display the map.

Parameters
array$params
string$mapName
Returns
string
MapsDisplayMapRenderer::renderMap ( array  $params,
Parser  $parser 
)
final

Handles the request from the parser hook by doing the work that's common for all mapping services, calling the specific methods and finally returning the resulting output.

Parameters
array$params
Parser$parser
Returns
string

The documentation for this class was generated from the following file: