Jvectormap very small on div change

前端 未结 5 514
抹茶落季
抹茶落季 2021-02-09 01:54

I have two divs, one with the world map and one with the US map. When the USA is clicked on the world map I want to hide that div and bring the US map into view.

This wo

5条回答
  •  孤街浪徒
    2021-02-09 02:27

    This issue is caused by the fact that you initialize map on the hidden element, whose size can't be calculated properly at that time. Try to change your logic so that jVectorMap would be initialized after the element becomes visible.

提交回复
热议问题