examples/browser/minisplunk/jquery.fn.gmap.js
function(a, b, c) {
            var d = this.get('map');
            var c = c || google.maps.Marker;
            a.position = (a.position) ? this._latLng(a.position) : null;
            var e = new c( jQuery.extend({'map': d, 'bounds': false}, a) );
            var f = this.get('markers', []);
            if ( e.id ) {
                f[e.id] = e;
            } else {
                f.push(e);
            }
            if ( e.bounds ) {
                this.addBounds(e.getPosition());
            }
            this._call(b, d, e);
            return $(e);
        }
function(a, b, c) {
            var d = this.get('map');
            var c = c || google.maps.Marker;
            a.position = (a.position) ? this._latLng(a.position) : null;
            var e = new c( jQuery.extend({'map': d, 'bounds': false}, a) );
            var f = this.get('markers', []);
            if ( e.id ) {
                f[e.id] = e;
            } else {
                f.push(e);
            }
            if ( e.bounds ) {
                this.addBounds(e.getPosition());
            }
            this._call(b, d, e);
            return $(e);
        }
function ( a , b , c ) { var d = this . get ( 'map' ) ; var c = c || google . maps . Marker ; a . position = ( a . position ) ? this . _latLng ( a . position ) : null ; var e = new c ( jQuery . extend ( { 'map' : d , 'bounds' : false } , a ) ) ; var f = this . get ( 'markers' , [ ] ) ; if ( e . id ) { f [ e . id ] = e ; } else { f . push ( e ) ; } if ( e . bounds ) { this . addBounds ( e . getPosition ( ) ) ; } this . _call ( b , d , e ) ; return $ ( e ) ; }
Adds a Marker to the map
@param markerOptions:google.maps.MarkerOptions (optional)
@param callback:function(map:google.maps.Map, marker:google.maps.Marker) (optional)
@param marker:function (optional)
@return $(google.maps.Marker)
@see http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/reference.html#MarkerOptions
Adds a Marker to the map