views:

4

answers:

0

I have written the following code to display images and contents on the google map ,how can i place some sample video in one of the tab.

function createMarker(point, name, address, imagepath) {
        var marker = new GMarker(point, gicons[imagepath]);
        //var html1 = '<div><a href="#" class="DataHead">' + name + '</b></div> <br/> <div id="DataText">' + address + '</div>';
        //  var html = '<span class="name-tab"><b>' + name + '</b></span> <br/><span class="info">' + address + '<br/> </span>';

        var html1 = '<span class="name-tab"><b>' + name + '</b></span> <span class="info"><br/>' + address + '</span>';
        var content = '<img width="100" Height="100" src="http://www.visitingdc.com/images/golden-gate-bridge-picture.jpg" />'; 

        GEvent.addListener(marker, 'click', function() {
        var infoTabs = [new GInfoWindowTab("Address", html1), new GInfoWindowTab("Images", content)];
              marker.openInfoWindowTabsHtml(infoTabs);
      });