兵地图V7到V8迁移
问题描述:
我工作的一个项目迁移从version7(V7)冰地图V8和下面的文件中提到的程序兵地图V7到V8迁移
我们的兵地图应用程序(第7版)在地图类中使用getTargetBounds()方法(按照以下代码)来导航地图以显示所选位置。根据文档(上面的链接),这个方法已经在v8中被删除了。您能否请告知在bing map v8中实现此目标的工作是什么?
var targetBounds = bingMap.getTargetBounds();
var isView = targetBounds.contains(newLocaton);
if (!isView) {
bingMap.setView({ center: newLocaton });
}
由于
答
只需使用map.getBounds()的视图已经改变之后。
谢谢!它的工作原理 – user3802566
任何解决方法之前,任何解决方法BeforeStepRender,BeforeSummaryRender,DirectionManager Events类中的AfterWaypointRender方法的工作? – user3802566