36 const DEFAULT_TILE =
"a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org";
43 if (self::$_settings ===
null) {
173 require_once(
"Services/Maps/classes/class.ilGoogleMapGUI.php");
176 require_once(
"Services/Maps/classes/class.ilOpenLayersMapGUI.php");
178 $map->setTileServers(self::getStdTileServers());
179 $map->setGeolocationServer(self::getStdGeolocationServer());
182 require_once(
"Services/Maps/classes/class.ilGoogleMapGUI.php");
196 $lng->loadLanguageModule(
"maps");
197 return array(
"openlayers" =>
$lng->txt(
"maps_open_layers_maps")
198 ,
"googlemaps" =>
$lng->txt(
"maps_google_maps")
An exception for terminatinating execution or to throw for unit testing.
User interface class for google maps.
static getStdGeolocationServer()
Returns the reverse geolocation server to be used in the installation.
static getStdTileServers()
Returns the tile server to be used in the installation.
static setApiKey($a_api_key)
static setActivated($a_activated)
static setStdLatitude($a_lat)
static isActivated()
Checks whether Map feature is activated.
const DEFAULT_GEOLOCATION
static setStdZoom($a_zoom)
static setStdGeolocationServer($a_geolocation)
static setStdLongitude($a_lon)
static getAvailableMapTypes()
Get a dict { $id => $name } for available maps services.
static getMapGUI()
Get an instance of the GUI class.
static getDefaultSettings()
Get default longitude, latitude and zoom.
static setStdTileServers($a_tile)
User interface class for OpenLayers maps.