Openlayers地图全窗口ui视图

时间:2015-07-14 13:36:20

标签: html css angularjs angular-material angular-openlayers

我有一个带有Angular材料的angularjs应用程序,用yeoman fullstack生成器制作。我的index.html有一个导航栏和一个用于显示网站内容的ui视图。

<!-- index.html --!>
<!-- Add your site or application content here -->
<div ng-include="'components/navbar/navbar.html'"></div>
<div ui-view></div>

main.html页面加载:<div ng-include="'app/map/map.html'"></div> openlayers地图我要填充窗口,但不会。高度并不总是停滞不前。地图也有直接路线。

将ui-view的高度设置为100%不起作用,并不是我需要的任何方式。虽然地图应该是100%,但ui-view中还有其他东西不应该加载。请帮我把这张地图填满窗户。

map.html加载找到的here开放图层指令。我尝试使用来自angular material的flex也没有成功。显然有一种方法可以做到这一点我只是新的,并且已经添加了高度和/或flex标签,几乎我在DOM中找到的所有内容都没有成功。

0 个答案:

没有答案