map只是容器,map的更新是针对与map绑定的div的size而言,而非map里面的layer。如果您那边因为div的变化而让其layer显示拉虚,可以使用
map的方法
updateSize() inherited
PluggableMap.js, line 1327
Force a recalculation of the map viewport size. This should be called when third-party code changes the size of the map viewport.