40 if (self::$_settings === null) {
43 return self::$_settings;
56 return self::settings()->get(
"enable") == 1;
63 self::settings()->set(
"enable", $a_activated?
"1":
"0");
68 self::settings()->set(
"type", $a_type);
72 return self::settings()->get(
"type");
77 self::settings()->set(
"std_latitude", $a_lat);
82 return self::settings()->get(
"std_latitude");
87 self::settings()->set(
"std_longitude", $a_lon);
92 return self::settings()->get(
"std_longitude");
97 self::settings()->set(
"std_zoom", $a_zoom);
102 return self::settings()->get(
"std_zoom");
107 self::settings()->set(
"api_key", $a_api_key);
112 return self::settings()->get(
"api_key");
123 "longitude" => self::settings()->
get(
"std_longitude"),
124 "latitude" => self::settings()->
get(
"std_latitude"),
125 "zoom" => self::settings()->
get(
"std_zoom"));
133 $type = self::getType();
136 require_once(
"Services/Maps/classes/class.ilGoogleMapGUI.php");
139 require_once(
"Services/Maps/classes/class.ilOpenLayersMapGUI.php");
142 require_once(
"Services/Maps/classes/class.ilGoogleMapGUI.php");
155 $lng->loadLanguageModule(
"maps");
156 return array(
"openlayers" => $lng->txt(
"maps_open_layers_maps")
157 ,
"googlemaps" => $lng->txt(
"maps_google_maps")
static setStdZoom($a_zoom)
static setStdLongitude($a_lon)
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.
static isActivated()
Checks whether Map feature is activated.
User interface class for OpenLayers maps.