Bing Map v7 to v8 migration RRS feed

  • Question

  • I am working on a project to migrate bing map from version7( v7)  to v8 and following the procedure mentioned in the document

    Our bing map application (v7) is using getTargetBounds() method in map class  (as per below code) to navigate the map to show the location selected. As per the document, this method has been depricated in the v8. Could you please advise what would be the work around to achieve this in bing map v8?

      var targetBounds = bingMap.getTargetBounds();
                            var isView = targetBounds.contains(newLocaton);

                            if (!isView) {
                                bingMap.setView({ center: newLocaton });


    Monday, June 5, 2017 6:37 PM