Может быть, это вам поможет.
var toAddress = "1071 SW 101ST,Hollywood,FL,33025";
var infoWinMsg = "this is a sample address";
function setMarkerObject(toAddress, infoWinMsg) {
$this.gmap3({
action: 'addMarker',
address: toAddress,
marker: {
options: {
icon: new google.maps.MarkerImage("../../a/img/find-a-ground/markers/marker.png", new google.maps.Size(40, 40)),
draggable: false
},
events: {
mouseover: function (marker, event) {
$(this).gmap3({
action: 'addinfowindow',
anchor: marker,
options: {
content: infoWinMsg
}
});
},
mouseout: function () {
var infowindow = $(this).gmap3({
action: 'get',
name: 'infowindow'
});
if (infowindow) {
infowindow.close();
}
}
}
},
infowindow: {
open: false,
options: {
content: infoWinMsg
}
},
map: {
center: true,
zoom: 14,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControl: false,
navigationControl: true,
scrollwheel: true,
streetViewControl: true
}
});
}