Andrew is right, you do not seem to have complete logic in the code
fragment above, or if you think you got, then no surprise that it
doesn't work. Here is a code snippet that might work:

GEvent.addListener(marker, "click", function() {
    var lat = marker.getLatLng().lat(), lng =
marker.getLatLng().lng(), zoom = 13;
    marker.openInfoWindowHtml("<b>" + "Type:
Concert<br>" +
                "Date: " + dateSplit[1] + "-" + dateSplit[2] + "-" +
dateSplit[0] +
"<br>" +
                "Time: " + startNum + ":" + timeArr[1] + " " +
time_meridian +
"<br>" +
                "Location:  " + loc + "<br>" +
                "<a href=" + url + " target=_blank>More Information</
a><br>" +
                "<a href="javascript:map.setCenter(new GLatLng('" +
lat + "', '" + lng + "', '" + zoom +"');">Zoom Here</a></
b>");
        });


While there maybe typos in the code above, it should work. Alter zoom
variable to whatever level you need to zoom on mouse click.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
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-api?hl=en.

Reply via email to