Kartographer
Extension that adds maps to wiki pages
Loading...
Searching...
No Matches
Kartographer\Special\SpecialMap Class Reference

Special page that works as a fallback destination for non-JS users who click on map links. More...

+ Inheritance diagram for Kartographer\Special\SpecialMap:
+ Collaboration diagram for Kartographer\Special\SpecialMap:

Public Member Functions

 __construct ( $name='Map')
 
 execute ( $par)
 @inheritDoc
 

Static Public Member Functions

static link (?float $lat, ?float $lon, ?int $zoom, $lang='local')
 

Detailed Description

Special page that works as a fallback destination for non-JS users who click on map links.

It displays a world map with a dot for the given location. URL format: Special:Map/<zoom>/<lat>/<lon> Zoom isn't used anywhere yet.

@license MIT

Constructor & Destructor Documentation

◆ __construct()

Kartographer\Special\SpecialMap::__construct ( $name = 'Map')
Parameters
string$name

Member Function Documentation

◆ link()

static Kartographer\Special\SpecialMap::link ( ?float $lat,
?float $lon,
?int $zoom,
$lang = 'local' )
static
Parameters
float | null$lat
float | null$lon
int | null$zoom
string$langOptional language code. Defaults to 'local'
Returns
string|null

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