Info window with maxWidth
//
,-73.977676,orange,map/Harvey_T3.jpg,Harvey,300,187";
text[47] = "Belmore Caferteria,40.7431,-73.9829,orange,map/cafeteria_800.jpg,Belmore,300,187";
function initialize() {
var mapDiv = document.getElementById('map-canvas');
map = new google.maps.Map(mapDiv, {
center: new google.maps.LatLng(40.744558, -73.977900),
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
infoWindow = new google.maps.InfoWindow();
google.maps.event.addListenerOnce(map, 'tilesloaded', addMarkers);
}
function addMarkers() {
function createMarker(map, position, number) {
var marker = new google.maps.Marker({
position: position,
icon: 'icon1.png',
map: map
});
google.maps.event.addListener(marker, 'mouseover', function() {
var data = text[number].split(",");
var name = data[0];
var lat = data[1];
var lng = data[2];
var myLatlng = new google.maps.LatLng(lat, lng);
var icontype = data[3];
var thumb = data[4];
var cat = data[5];
var w = data[6];
var h = data[7];
//var myHtml = '