var II = II || {};
II.GMap = (function($, google) {
    'use strict';
    var default_options = {
        zoom:      2,
        center:    new google.maps.LatLng(0, 13),
        mapTypeId: google.maps.MapTypeId.SATELLITE
    };

    var GMap = function (id, options) {
        options = options || {};
        for (var opt in default_options) {
            if (typeof options[opt] == "undefined") {
                options[opt] = default_options[opt];
            }
        }

        this.map_id = id;
        this.map_options = options;
    };

    GMap.prototype.create_map = function () {
        this.map = new google.maps.Map(
            $('#' + this.map_id)[0],
            this.map_options
        );
    };

    return GMap;
})(jQuery, google);
