locked
infobox width/height for Bing Maps V8 RRS feed

  • Question

  • Hi,

    In BM v7, was possible to control the width and height of the infobox, but the new version doesn't have an effective way to control the size, other than a custom infobox using html, but this way you can't have the 'pointer' who is drawn with the standard infobox. Any thoughts?

        commonInfoBox2.setLocation(Position);
        commonInfoBox2.setMap(map3);
        commonInfoBox2.setOptions({ width: 680, height: 110, visible: true, offset: new Microsoft.Maps.Point(0, 10), title: 'Fire Station ' + e.target.number,
            description: '<p><strong>Fire Department:</strong> ' + e.target.firedepartment + '<br/> <strong>Address:</strong> ' + e.target.address + '<br/> <strong>Phone:</strong> ' + Phone + '</p>'
        });

     On this piece of code, width and height are ignored!


    Bernardo Salazar

    Tuesday, August 16, 2016 8:59 PM

Answers

  • The infobox class in V8 is still being developed. A big update will be available in the experimental branch within a week and in the main release branch in early September. This update allows the infobox to automatically scale to the size of the content you pass into it. Additionally you can set max width/size values for it as well. HTML descriptions/titles will also be supported.

    [Blog] [twitter] [LinkedIn]

    Wednesday, August 17, 2016 12:41 AM
  • In v8 the infobox scales to the size of the content to a maximum size. You can specify the maximum size using the maxWidth and maxHeight options. If your content is smaller than the max size but you want it to always render a certain size, wrap your content with a div and add with/height values to it.

    [Blog] [twitter] [LinkedIn]

    Saturday, December 17, 2016 2:01 PM

All replies

  • The infobox class in V8 is still being developed. A big update will be available in the experimental branch within a week and in the main release branch in early September. This update allows the infobox to automatically scale to the size of the content you pass into it. Additionally you can set max width/size values for it as well. HTML descriptions/titles will also be supported.

    [Blog] [twitter] [LinkedIn]

    Wednesday, August 17, 2016 12:41 AM
  • @Ricky_Brundritt any update on this?? 
    Saturday, December 17, 2016 10:24 AM
  • In v8 the infobox scales to the size of the content to a maximum size. You can specify the maximum size using the maxWidth and maxHeight options. If your content is smaller than the max size but you want it to always render a certain size, wrap your content with a div and add with/height values to it.

    [Blog] [twitter] [LinkedIn]

    Saturday, December 17, 2016 2:01 PM