Google Map Utility Class. More...
Static Public Member Functions | |
| static | isActivated () |
| Checks whether Google Map feature is activated. | |
| static | getDefaultSettings () |
| Get default longitude, latitude and zoom. | |
Google Map Utility Class.
Definition at line 32 of file class.ilGoogleMapUtil.php.
| static ilGoogleMapUtil::getDefaultSettings | ( | ) | [static] |
Get default longitude, latitude and zoom.
Definition at line 58 of file class.ilGoogleMapUtil.php.
Referenced by ilObjCourseGUI::editMapSettingsObject(), ilObjGroupGUI::editMapSettingsObject(), and ilPersonalProfileGUI::showLocation().
{
$gm_set = new ilSetting("google_maps");
return array(
"longitude" => $gm_set->get("std_longitude"),
"latitude" => $gm_set->get("std_latitude"),
"zoom" => $gm_set->get("std_zoom"));
}
Here is the caller graph for this function:| static ilGoogleMapUtil::isActivated | ( | ) | [static] |
Checks whether Google Map feature is activated.
API key must be provided.
Definition at line 41 of file class.ilGoogleMapUtil.php.
Referenced by ilPersonalProfileGUI::__initSubTabs(), ilObjGroupGUI::__setSubTabs(), ilObjCourseGUI::editMapSettingsObject(), ilObjGroupGUI::editMapSettingsObject(), ilObjUserGUI::getPublicProfile(), ilObjCourseGUI::membersMapObject(), ilObjGroupGUI::membersMapObject(), ilObjCourseGUI::setSubTabs(), and ilPersonalProfileGUI::showLocation().
{
$gm_set = new ilSetting("google_maps");
if (trim($gm_set->get("api_key")) != "" &&
$gm_set->get("enable"))
{
return true;
}
return false;
}
Here is the caller graph for this function:
1.7.1