19 declare(strict_types=1);
23 public const DEFAULT_TILE =
"a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org";
30 if (self::$_settings ===
null) {
33 return self::$_settings;
50 public static function setType(
string $type): void
90 public static function setApiKey(
string $api_key): void
113 return $std_tile ?: self::DEFAULT_TILE;
128 return $std_geoloc ?: self::DEFAULT_GEOLOCATION;
149 $type = self::getType();
153 $map->setTileServers(self::getStdTileServers());
154 $map->setGeolocationServer(self::getStdGeolocationServer());
170 $lng->loadLanguageModule(
"maps");
173 "openlayers" =>
$lng->txt(
"maps_open_layers_maps"),
174 "googlemaps" =>
$lng->txt(
"maps_google_maps")
static setType(string $type)
static setActivated(bool $activated)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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.
User interface class for Google Maps.
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)