PDA

View Full Version : would like to infi windows initially hidden upon page load


mark308437
03-23-2009, 10:28 AM
Hi,

can someone advise how, when using dynamic addresses, I can have just pins/flag showing when the page loads, without any info panel expanded...I want the info panel to only show when a pin/flag is clicked....I'm looking at the php file that is automaically produced, but I'm not seeing where I can edit the code..

many thanks

Ray Borduin
03-23-2009, 02:46 PM
comment out the line in your map .js file:

map.addOverlay(marker);
marker.openInfoWindowHtml(address_0.infowindowtext );
}

becomes:
map.addOverlay(marker);
//marker.openInfoWindowHtml(address_0.infowindowtext );
}

That is the line that opens the info window, so without it no window will open until clicked.

mark308437
03-24-2009, 04:31 AM
Many thanks, that solves my query.