Buefy steps and tabs block Leaflet map

时光怂恿深爱的人放手 提交于 2020-08-10 19:46:15

问题


I have an issue with loading Leaflet map using Vue.js and Bulma stepper components (via Buefy).

If map is placed inside stepper then it does not load all tiles until browser window is resized.

If map is placed outside of Bulma stepper component then it loads without any issue.

How to get this working ?

Example with the issue: https://codepen.io/alxxnder/pen/zyYxwd

Example without the issue: https://codepen.io/alxxnder/pen/LMYEjr

 <b-steps>
        <b-step-item label="Account" icon="account-key">
                        <LMap
                            style="height: 350px"
                            :zoom="zoom"
                            :center="center"
                            @click="adjustMarker"
                        >
                            <LTileLayer :url="url"></LTileLayer>
                            <LCircleMarker
                                :lat-lng="circle.center"
                                :radius="circle.radius"
                                :color="circle.color"
                            />
                        </LMap>
             </b-step-item>
        <b-step-item label="Profile" icon="account"></b-step-item> 
    </b-steps>

There is no difference if I load the map in tab 1 or tab 2.

Thank you

来源:https://stackoverflow.com/questions/63315942/buefy-steps-and-tabs-block-leaflet-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!