3 declare(strict_types=1);
     9     public const DEFAULT_TILE = 
"a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org";
    16         if (self::$_settings === null) {
    19         return self::$_settings;
    36     public static function setType(
string $type): void
    76     public static function setApiKey(
string $api_key): void
    99         return $std_tile ?: self::DEFAULT_TILE;
   114         return $std_geoloc ?: self::DEFAULT_GEOLOCATION;
   135         $type = self::getType();
   139                 $map->setTileServers(self::getStdTileServers());
   140                 $map->setGeolocationServer(self::getStdGeolocationServer());
   156         $lng->loadLanguageModule(
"maps");
   159             "openlayers" => 
$lng->txt(
"maps_open_layers_maps"),
   160             "googlemaps" => 
$lng->txt(
"maps_google_maps")
 
static setType(string $type)
 
static setActivated(bool $activated)
 
static getMapGUI()
Get an instance of the GUI class. 
 
static setStdTileServers(string $tile)
 
static setApiKey(string $api_key)
 
static getDefaultSettings()
Get default longitude, latitude and zoom. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static setStdLongitude(string $lon)
 
static getAvailableMapTypes()
Get a dict { $id => $name } for available maps services. 
 
static isActivated()
Checks whether Map feature is activated. 
 
static getStdGeolocationServer()
Returns the reverse geolocation server to be used in the installation. 
 
static setStdLatitude(string $lat)
 
static getStdTileServers()
Returns the tile server to be used in the installation. 
 
static setStdGeolocationServer($geolocation)
 
User interface class for OpenLayers maps. 
 
static ilSetting $_settings
 
const DEFAULT_GEOLOCATION
 
static setStdZoom(string $zoom)