Support

Account

Forum Replies Created

  • 		if( $marker.html() )
    		{
    			// create info window
    			var infoWindow = new google.maps.InfoWindow({
    				content		: $marker.html()
    			});
    			
    			infoWindows.push(infoWindow);
    	
    			// show info window when marker is clicked
    			google.maps.event.addListener(marker, 'click', function() {
    
    				//close all
    				for (var i = 0; i < infoWindows.length; i++) {
    				  infoWindows[i].close();
    				}
    																	
    				infoWindow.open( map, marker );
    			});
    			
    			google.maps.event.addListener(map, 'click', function() {
    				infoWindow.close();
    			});
    		}
Viewing 1 post (of 1 total)