john
public javascript v1 · immutablejQuery.fn.gmapp = function(settings){ settings = jQuery.extend({ maptype: G_HYBRID_TYPE, center: [55.590763,-1.845703], zoom: 13 },settings); if (GBrowserIsCompatible()) {return this.each(function(){ var map = new GMap2 (this); map.setCenter(new GLatLng(settings.center[0],settings.center[1]),settings.zoom,settings.maptype);}); } }