0
我會用JavaScript在Google Maps上打開GMarker(openInfoWindowHtml)。我怎樣才能做到這一點?如何使用JavaScript打開GMarker?
非常感謝您
代碼爲Marker:
function createMarker(point, id, name, address, type, city, image) {
var marker = new GMarker(point, customIcons[type]);
var html = "Information";
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html);
});
return marker;