我有多个tabBar页面,每个都是全屏(宽高都是100%满屏)显示地图组件,但是发现只有启动的时候加载的第一个页面地图高度正常达到100%,剩下的页面第一个加载的时候都是下方留有一定比例的空白(再次点击就全屏显示了),关闭调试或者使用体验版同样如此。
此问题在开发工具里面不存在。
代码配置:
map_width:"100vw",
map_height:"100vh",
|
<view>
<map id="tracemap" longitude="{{map_longitude}}" latitude="{{map_latitude}}" controls="{{controls}}" bindcontroltap="controlsTapHandle" scale="15" markers="{{markers}}" show-location style="width:{{map_width}};height:{{map_height}};" circles="{{circles}}" polyline="{{polyline}}" bindregionchange="mapRegionChange"/>
view>
|
如下图所示:
![]()
这个问题好多版本了,一直没有解决,安卓多个页面有map组件的时候会出现这个问题,看起来很难看,ios没有此问题