     1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28:

    <?php

    namespace WPGMZA;

    require_once(WPGMZA_DIR_PATH. 'includes/google-maps/class.google-maps-loader.php');

    class GoogleProMapsLoader extends GoogleMapsLoader
    {
        public static function _createInstance()
        {
            return new GoogleProMapsLoader();
        }

        protected function getGoogleMapsAPIParams()
        {
            $params = GoogleMapsLoader::getGoogleMapsAPIParams();

            $libraries = array();
            if(!empty($params['libraries']))
                $libraries = explode(',', $params['libraries']);
            $libraries[] = 'places';
            $libraries[] = 'visualization';
            $params['libraries'] = implode(',', $libraries);

            return $params;
        }
    }