问题
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