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;
132 return $std_tile ? $std_tile : self::DEFAULT_TILE;
149 return $std_geoloc ? $std_geoloc : self::DEFAULT_GEOLOCATION;
170 $type = self::getType();
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")
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