调整V8地图控制 [英] Sizing V8 Map Control

查看:113
本文介绍了调整V8地图控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用V8和bootstrap的地图应用程序。我希望地图能够动态地改变大小,以使用正在使用的屏幕上的可用空间。如何在div中定义它?

解决方案

对于Bing Maps v8 mapcontrol,它只需要div的高度和宽度。   


可以在此处找到使用Mapcontrol的文档:  https://msdn.microsoft.com/en-US/library/mt712557.aspx


I have a mapping app using V8 and bootstrap. I would like the map to dynamically change size to use the real estate available on the screen being used. How to I define that in the div to do that?

解决方案

For the Bing Maps v8 mapcontrol, it just takes the height and width of the div.  

The documentation for using the Mapcontrol can be found here: https://msdn.microsoft.com/en-US/library/mt712557.aspx


这篇关于调整V8地图控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆