none
V8 issue: method infobox.getVisible() always returns true after I closed the inforbox manually or call infobox.setMap(null) to "delete" the infobox from map RRS feed

  • Question

  • Hi,

    After I switched to V8, method infobox.getVisible() returns true after I closed the inforbox manually or call infobox.setMap(null) to "delete" the infobox from map object.

    How do I tell if a infobox is visible or not on the map? 

    You may repro this issue by simply using the Interactive SDK here:

    1. Open   http://www.bing.com/api/maps/sdk/mapcontrol/isdk#deleteInfobox+JS

    2. Add line    alert(infobox.getVisible());  after   infobox.setMap(null); is called.

    3. Click the little green button to display. You will receive the pop up box saying "true"

    Saturday, April 9, 2016 5:52 AM

Answers

  • This is now fixed and available in the experimental branch of the SDK. Simply add &branch=experimental to the map control URL and you should see this work now. If using the ISDK, use the dropdown in the top right and select Experimental.

    This will be merged into the release branch in the coming weeks.


    [Blog] [twitter] [LinkedIn]

    Wednesday, April 27, 2016 6:49 PM
  • This will be merged into the release branch by the end of this week. Be sure to remove "&branch=experimental" from the map script before using in production so as to reduce potential issues in the future.

    [Blog] [twitter] [LinkedIn]

    Wednesday, May 4, 2016 7:05 PM

All replies