36 const DEFAULT_TILE =
"a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org";
43 if (self::$_settings === null) {
46 return self::$_settings;
131 return $std_tile ? $std_tile : self::DEFAULT_TILE;
148 return $std_geoloc ? $std_geoloc : self::DEFAULT_GEOLOCATION;
169 $type = self::getType();
172 require_once(
"Services/Maps/classes/class.ilGoogleMapGUI.php");
175 require_once(
"Services/Maps/classes/class.ilOpenLayersMapGUI.php");
177 $map->setTileServers(self::getStdTileServers());
178 $map->setGeolocationServer(self::getStdGeolocationServer());
181 require_once(
"Services/Maps/classes/class.ilGoogleMapGUI.php");
195 $lng->loadLanguageModule(
"maps");
196 return array(
"openlayers" =>
$lng->txt(
"maps_open_layers_maps")
197 ,
"googlemaps" =>
$lng->txt(
"maps_google_maps")
static setStdZoom($a_zoom)
static setStdGeolocationServer($a_geolocation)
static setStdLongitude($a_lon)
static setStdTileServers($a_tile)
static setApiKey($a_api_key)
static getMapGUI()
Get an instance of the GUI class.
static setActivated($a_activated)
static getDefaultSettings()
Get default longitude, latitude and zoom.
User interface class for google maps.
static setStdLatitude($a_lat)
static getAvailableMapTypes()
Get a dict { $id => $name } for available maps services.
Create styles array
The data for the language used.
static isActivated()
Checks whether Map feature is activated.
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.
User interface class for OpenLayers maps.
const DEFAULT_GEOLOCATION