none
Close button is not displayed in custom infobox RRS feed

  • Question

  • I tried adding above CSS in my page .

    it remove horizontal scroll bar for infobox but my close button is also remove .

    Even though i have  given in  js code to display close button  Please help what to do to display close button in infobox. 

    var infoboxTemplate = '<div class="infobox-info">{description}</div>';

    var infobox = new Microsoft.Maps.Infobox(point, {
             htmlContent: infoboxTemplate.replace('{description}', info),visible: false,showCloseButton: true 
         });

    and my CSS is 

    .infobox-info{
       white-space: pre-wrap;      /* CSS3 */   
       white-space: -moz-pre-wrap; /* Firefox */    
       white-space: -pre-wrap;     /* Opera <7 */   
       white-space: -o-pre-wrap;   /* Opera 7 */    
       word-wrap: break-word;      /* IE */
       overflow-x:hidden;
       border: 1px solid #888;
       background-color:White;
    }

    </style>

    Thanks & Regards:

    Neha


    Neha

    Thursday, July 26, 2018 5:06 AM

All replies