public static function loadGeopickerResources($additionalResources = array())
    {
        //load geopicker profile
        $profile = C4gMapProfilesModel::findBy('is_backend_geopicker_default', 1);
        // use default if the profile was not found
        if (!$profile) {
            $settings = C4gSettingsModel::findAll();
            $profile = $settings[0]->defaultprofile;
            if (!$profile) {
                $profiles = C4gMapProfilesModel::findAll();
                if ($profiles && (!empty($profiles))) {
                    $length = count($profiles);
                    $profile = $profiles[$length-1];
                } else {
                    return;
                }
            }
        }
        self::loadResourcesForProfile($profile->id, true, $profile);
        if (count($additionalResources) > 0) {
            self::loadResources($additionalResources);
        }
    }