if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
/**
* Plugin - Google Maps for ExpressionEngine
*
* @package			Google Maps for ExpressionEngine
* @version			2.5 - Build 20120131
* @author			Justin Kimbrell <http://objectivehtml.com>
* @copyright 		Copyright (c) 2012 Justin Kimbrell <http://objectivehtml.com>
* @license 		Creative Commons Attribution 3.0 Unported License -
					please see LICENSE file included with this distribution
* @link			http://objectivehtml.com/google-maps
*/
$plugin_info = array('pi_name' => 'Google Maps for ExpressionEngine', 'pi_version' => '2.5', 'pi_author' => 'Justin Kimbrell', 'pi_author_url' => 'http://objectivehtml.com/documentation/google-maps-for-expressionengine', 'pi_description' => 'Creates static and dynamic maps from content channels.', 'pi_usage' => Gmap::usage());
class Gmap
{
    private $args = array('map' => array('backgroundColor', 'disableDefaultUI', 'disableDoubleClickZoom', 'draggable', 'draggableCursor', 'heading', 'keyboardShortcuts', 'mapTypeControl', 'mapTypeControlOptions', 'mapTypeId', 'maxZoom', 'minZoom', 'noClear', 'overviewMapControl', 'overviewMapControlOptions', 'panControl', 'panControlOptions', 'rotateControl', 'rotateControlOptions', 'scaleControl', 'scaleControlOptions', 'scrollwheel', 'streetView', 'streetViewControl', 'streetViewControlOptions', 'tilt', 'title', 'zoomControl', 'zoomControlOptions', 'zoom'), 'channel' => array('author_id', 'backspace', 'cache', 'refresh', 'cat_limit', 'category', 'category_group', 'isable', 'channel', 'display_by', 'dynamic', 'dynamic_start', 'entry_id', 'entry_id_from', 'entry_id_to', 'fixed_order', 'group_id', 'limit', 'month_limit', 'offset', 'orderby', 'paginate', 'paginate_base', 'paginate_type', 'related_categories_mode', 'relaxed_categories', 'require_entry', 'show_current_week', 'show_expired', 'show_future_entries', 'show_pages', 'sort', 'start_day', 'start_on', 'status', 'stop_before', 'sticky', 'track_views', 'uncategorized_entries', 'url_title', 'username', 'week_sort', 'year', 'month', 'day'), 'plugin' => array('center', 'channel', 'hide_markers', 'open_windows', 'map_type', 'id', 'class', 'style', 'style_link', 'style_obj', 'extend_bounds', 'show_one_window', 'icon', 'show_coordinate', 'add_title_to_dropdown', 'metric', 'offset', 'distance', 'cache_post', 'show_sql', 'require', 'name'), 'fields' => array('address_field', 'city_field', 'state_field', 'zipcode_field', 'country_field', 'latitude_field', 'longitude_field', 'zoom_field', 'address', 'latitude', 'longitude', 'gmap_field', 'lat_lng'));
    public $geocoder_response;
    public function __construct()
    {
        $this->EE =& get_instance();
        $this->EE->load->config('gmap');
    }
    public function init()
    {
        $this->args = $this->_fetch_params(FALSE);
        return $this->_init_map();
    }
    public function center()