http://jsfiddle.net/3pXXF/21/
^ link to my script
var Markers = [];
var dots = [
[0, -1, "A"],
[0, -2, "B"],
[0, -3, "C"],
];
function initialize() {
var latlng = new google.maps.LatLng(0, 0);
var myOptions = {
zoom: 6,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
var image = 'i/hotel-map-pin.png';
var mc = new MarkerClusterer(map, marker);
google.maps.event.addListener(map, 'click', function() {
infowindow.close();
});
for (var i = 0; i < dots.length; i++) {
var marker = new google.maps.Marker({
position: new google.maps.LatLng(dots[i][0], dots[i][1]),
map: map,
title: dots[i][2]
});
mc.addMarkers(markerArray, true);
}
}
window.onload = initialize;
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/nVMlFFA_G-EJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.