I trying to create a simple google maps plugin. I'm following a tutorial but i can't figure out this block of code. Anyone could explain me this code ?
(function(window, google) {
var Mapster = (function() {
function Mapster(element, opts) {
this.gMap = new google.maps.Map(element,opts);
}
Mapster.prototype = {
zoom: function(level) {
//some code here
}
};
return Mapster;
}());
Mapster.create = function(element, opts) {
return new Mapster(element, opts);
};
window.Mapster = Mapster;
}(window, google));