//*********************************** situar Marker dynk en el mapa***** var xicon = new google.maps.MarkerImage('http://fora.babinet.cz/img/avatars/155.gif', null, null, null, new google.maps.Size(24, 24)); var dynk_marker = new google.maps.Marker // set the variable marker ({ position: new google.maps.LatLng(41.3001, 2.15445), // set the geographic position for the marker map: map, // puts the marker on the specified map title: 'dynk_title', // text that will display when the mouse cursor hovers over the marker icon: xicon // location of image file that will be used as a marker }); google.maps.event.addListener // Event addlistener for info window of marker ( dynk_marker, // associates the action with the marker named marker 'click', // declares which event will trigger the event // Valid values are as follows // click, dblclick, mousedown, mousemove, mouseout, mouseover,mouseup, rightclick function () { infowindow.setContent('dynk_title'); // sets the content for the info window (any valid html will do here infowindow.open(map, dynk_marker); // sets the info window to open based on the event }); // extend the bounds object with the dynk_marker position bounds.extend(dynk_marker.getPosition());